aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/beam_load.c
diff options
context:
space:
mode:
authorHenrik Nord <[email protected]>2015-03-12 12:11:13 +0100
committerHenrik Nord <[email protected]>2015-03-12 12:11:13 +0100
commit408c7dc8922a123aad815a24a27d7ff24971a253 (patch)
tree9f1e874299e433c8e0cb9e344a96e922ac134199 /erts/emulator/beam/beam_load.c
parent43db415c05c20c1d0793ec994da265f02dc73e21 (diff)
parentfaeb9e9a67096af4257cd00409f06314f3223196 (diff)
downloadotp-408c7dc8922a123aad815a24a27d7ff24971a253.tar.gz
otp-408c7dc8922a123aad815a24a27d7ff24971a253.tar.bz2
otp-408c7dc8922a123aad815a24a27d7ff24971a253.zip
Merge branch 'maint'
Conflicts: erts/emulator/hipe/hipe_bif0.c
Diffstat (limited to 'erts/emulator/beam/beam_load.c')
-rw-r--r--erts/emulator/beam/beam_load.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/beam/beam_load.c b/erts/emulator/beam/beam_load.c
index b9a6536ac6..fce710f723 100644
--- a/erts/emulator/beam/beam_load.c
+++ b/erts/emulator/beam/beam_load.c
@@ -5072,7 +5072,8 @@ get_tag_and_value(LoaderState* stp, Uint len_code,
arity = count/sizeof(Eterm);
*result = new_literal(stp, &hp, arity+1);
- (void) bytes_to_big(bigbuf, count, neg, hp);
+ if (is_nil(bytes_to_big(bigbuf, count, neg, hp)))
+ goto load_error;
if (bigbuf != default_buf) {
erts_free(ERTS_ALC_T_LOADER_TMP, (void *) bigbuf);