aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/bif_SUITE.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-09-01 14:39:52 +0200
committerSverker Eriksson <[email protected]>2017-09-01 14:39:52 +0200
commit50da40f8404969b5a1533026d49e2e2669ffadff (patch)
tree89da7d6933847bd94153cf51025c44afe1e8463e /erts/emulator/test/bif_SUITE.erl
parent31f236eb808f24fc0dc1ac71313b284dbdd84e0e (diff)
parent44a83c8860bbd00878c720a7b9d940b4630bab8a (diff)
downloadotp-50da40f8404969b5a1533026d49e2e2669ffadff.tar.gz
otp-50da40f8404969b5a1533026d49e2e2669ffadff.tar.bz2
otp-50da40f8404969b5a1533026d49e2e2669ffadff.zip
Merge branch 'sverker/20/binary_to_atom-utf8-crash/ERL-474/OTP-14590' into maint
* sverker/20/binary_to_atom-utf8-crash/ERL-474/OTP-14590: erts: Fix crash in binary_to_atom/term for invalid utf8
Diffstat (limited to 'erts/emulator/test/bif_SUITE.erl')
-rw-r--r--erts/emulator/test/bif_SUITE.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/erts/emulator/test/bif_SUITE.erl b/erts/emulator/test/bif_SUITE.erl
index 2320870a0e..04b7f2de15 100644
--- a/erts/emulator/test/bif_SUITE.erl
+++ b/erts/emulator/test/bif_SUITE.erl
@@ -525,6 +525,8 @@ binary_to_atom(Config) when is_list(Config) ->
?BADARG(binary_to_atom(id(<<255>>), utf8)),
?BADARG(binary_to_atom(id(<<255,0>>), utf8)),
?BADARG(binary_to_atom(id(<<16#C0,16#80>>), utf8)), %Overlong 0.
+ <<B:1/binary, _/binary>> = id(<<194, 163>>), %Truncated character ERL-474
+ ?BADARG(binary_to_atom(B, utf8)),
%% system_limit failures.
?SYS_LIMIT(binary_to_atom(id(<<0:512/unit:8,255>>), utf8)),