diff options
author | Henrik Nord <[email protected]> | 2015-09-17 13:08:27 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2015-09-17 13:08:27 +0200 |
commit | 906d515b76abd98b7c0db52db484d2d7a0ba70bf (patch) | |
tree | 77c0198c1c1005c80eb6b728eb1a6c751f7fad16 /erts/emulator/beam/big.c | |
parent | 92566fedf24762545f4f7527b9306eb4fd4a9ff9 (diff) | |
parent | 6c9f25aafc8682387f13f6a6ac505ffaeff476c0 (diff) | |
download | otp-906d515b76abd98b7c0db52db484d2d7a0ba70bf.tar.gz otp-906d515b76abd98b7c0db52db484d2d7a0ba70bf.tar.bz2 otp-906d515b76abd98b7c0db52db484d2d7a0ba70bf.zip |
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/beam/big.c')
-rw-r--r-- | erts/emulator/beam/big.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/erts/emulator/beam/big.c b/erts/emulator/beam/big.c index 8662398dcf..02d37e24df 100644 --- a/erts/emulator/beam/big.c +++ b/erts/emulator/beam/big.c @@ -2604,6 +2604,9 @@ Eterm erts_chars_to_integer(Process *BIF_P, char *bytes, size--; } + if (size == 0) + goto bytebuf_to_integer_1_error; + if (size < SMALL_DIGITS && base <= 10) { /* * * Take shortcut if we know that all chars are '0' < b < '9' and |