aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/bif_SUITE.erl
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2017-11-15 14:39:57 +0100
committerErlang/OTP <[email protected]>2017-11-15 14:39:57 +0100
commitf84f3547d4f47ba8c6b5bcf7c032cbc96f59fda0 (patch)
tree27a8790bf9ae9d65f894830a7fc867edaf61697d /erts/emulator/test/bif_SUITE.erl
parent7ca3c4e7a37c71a327feaec60128329b48e51436 (diff)
parent97dc5e7f396129222419811c173edc7fa767b0f8 (diff)
downloadotp-f84f3547d4f47ba8c6b5bcf7c032cbc96f59fda0.tar.gz
otp-f84f3547d4f47ba8c6b5bcf7c032cbc96f59fda0.tar.bz2
otp-f84f3547d4f47ba8c6b5bcf7c032cbc96f59fda0.zip
Merge branch 'sverker/r16/binary_to_atom-utf8-crash/ERL-474/OTP-14590' into maint-18
* sverker/r16/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.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/test/bif_SUITE.erl b/erts/emulator/test/bif_SUITE.erl
index d6a771e7b9..e6041b5670 100644
--- a/erts/emulator/test/bif_SUITE.erl
+++ b/erts/emulator/test/bif_SUITE.erl
@@ -488,6 +488,9 @@ binary_to_atom(Config) when is_list(Config) ->
?line ?BADARG(binary_to_atom(id(<<255>>), utf8)),
?line ?BADARG(binary_to_atom(id(<<255,0>>), utf8)),
?line ?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)),
+
?line [?BADARG(binary_to_atom(<<C/utf8>>, utf8)) ||
C <- lists:seq(256, 16#D7FF)],
?line [?BADARG(binary_to_atom(<<C/utf8>>, utf8)) ||