diff options
author | Sverker Eriksson <[email protected]> | 2017-08-30 19:53:37 +0200 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2017-08-30 20:21:10 +0200 |
commit | 97dc5e7f396129222419811c173edc7fa767b0f8 (patch) | |
tree | 636fd537cd1634a04176d635183668efa64c3650 /erts/emulator/test/binary_SUITE.erl | |
parent | 8cece79b77952c991e62ae595bcf71cde016a052 (diff) | |
download | otp-97dc5e7f396129222419811c173edc7fa767b0f8.tar.gz otp-97dc5e7f396129222419811c173edc7fa767b0f8.tar.bz2 otp-97dc5e7f396129222419811c173edc7fa767b0f8.zip |
erts: Fix crash in binary_to_atom/term for invalid utf8
such as a sub-binary, of a correct utf8 string,
that ends in the middle of a character.
Diffstat (limited to 'erts/emulator/test/binary_SUITE.erl')
-rw-r--r-- | erts/emulator/test/binary_SUITE.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/test/binary_SUITE.erl b/erts/emulator/test/binary_SUITE.erl index fe0a745db8..fc3be38519 100644 --- a/erts/emulator/test/binary_SUITE.erl +++ b/erts/emulator/test/binary_SUITE.erl @@ -599,6 +599,9 @@ bad_binary_to_term(Config) when is_list(Config) -> %% Bad float. ?line bad_bin_to_term(<<131,70,-1:64>>), + + %% Truncated UTF8 character (ERL-474) + bad_bin_to_term(<<131,119,1,194,163>>), ok. bad_bin_to_term(BadBin) -> |