diff options
author | Sverker Eriksson <[email protected]> | 2015-03-27 16:47:23 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2015-03-27 16:47:23 +0100 |
commit | cbceea683c9f718bc6f0140c2402a7f74455ea14 (patch) | |
tree | 1d10b24da3fedc272b39d7293aa45d2c33eb53c1 /erts/emulator/test/num_bif_SUITE.erl | |
parent | d477e5978d165d7496fa6b983f8933f5105f901f (diff) | |
parent | 59ec3041469226ef65894e5774ecac0fea1551cd (diff) | |
download | otp-cbceea683c9f718bc6f0140c2402a7f74455ea14.tar.gz otp-cbceea683c9f718bc6f0140c2402a7f74455ea14.tar.bz2 otp-cbceea683c9f718bc6f0140c2402a7f74455ea14.zip |
Merge branch 'sverk/large-list_to_integer-bug/OTP-12624' into maint
* sverk/large-list_to_integer-bug/OTP-12624:
erts: Fix bug in list_to_integer for very large strings
Diffstat (limited to 'erts/emulator/test/num_bif_SUITE.erl')
-rw-r--r-- | erts/emulator/test/num_bif_SUITE.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/emulator/test/num_bif_SUITE.erl b/erts/emulator/test/num_bif_SUITE.erl index 8cf8377c30..abe5b8eb91 100644 --- a/erts/emulator/test/num_bif_SUITE.erl +++ b/erts/emulator/test/num_bif_SUITE.erl @@ -441,7 +441,11 @@ t_string_to_integer(Config) when is_list(Config) -> {"1111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111z",16}, {"1z111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111",16}, {"111z11111111",16}]), - + + %% log2 calculation overflow bug in do_integer_to_list (OTP-12624) + %% Would crash with segv + 0 = list_to_integer(lists:duplicate(10000000,$0)), + ok. test_sti(Num) -> |