diff options
author | John Högberg <[email protected]> | 2017-07-26 16:09:55 +0200 |
---|---|---|
committer | John Högberg <[email protected]> | 2017-08-01 11:23:01 +0200 |
commit | 0322232e3603ae098177e7fe5fcf81f2ed58ea00 (patch) | |
tree | ed73c1f48d1e811bfa6aea190f890b1f18d83693 /erts/emulator/test/crypto_reference.erl | |
parent | 74a95b3d511177a9b35c2b0272b9ca5511b6f750 (diff) | |
download | otp-0322232e3603ae098177e7fe5fcf81f2ed58ea00.tar.gz otp-0322232e3603ae098177e7fe5fcf81f2ed58ea00.tar.bz2 otp-0322232e3603ae098177e7fe5fcf81f2ed58ea00.zip |
Check for overflow when appending binaries, and error out with system_limit
This fixes the following bug:
A = <<0:((1 bsl 32)-8)>>,
B = <<2, 3>>.
B =:= <<A/binary,1,B/binary>>. %% Evaluated to true...
Diffstat (limited to 'erts/emulator/test/crypto_reference.erl')
0 files changed, 0 insertions, 0 deletions