diff options
author | Sverker Eriksson <[email protected]> | 2015-03-05 18:48:14 +0100 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-03-12 19:15:33 +0100 |
commit | 01e843722aa39b3411d349c6fbea80ad87a6e9ef (patch) | |
tree | f3e012dcd03dc5a456ad51a36d11f4e9abf4cea5 /erts/emulator/beam/external.c | |
parent | 494223c5e5de14c3f7a9aa8395d2d99a7faa0eca (diff) | |
download | otp-01e843722aa39b3411d349c6fbea80ad87a6e9ef.tar.gz otp-01e843722aa39b3411d349c6fbea80ad87a6e9ef.tar.bz2 otp-01e843722aa39b3411d349c6fbea80ad87a6e9ef.zip |
erts: Reject duplicate keys for hamt in binary_to_term
Diffstat (limited to 'erts/emulator/beam/external.c')
-rw-r--r-- | erts/emulator/beam/external.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/erts/emulator/beam/external.c b/erts/emulator/beam/external.c index 0e012e9eec..9bcd9a7a50 100644 --- a/erts/emulator/beam/external.c +++ b/erts/emulator/beam/external.c @@ -3910,10 +3910,10 @@ dec_term_atom_common: next = (Eterm *) hamt_list->next; objp = hamt_list->objp; - /*SVERK Make it reject duplicate keys */ *objp = erts_hashmap_from_array(&factory, hamt_list->leaf_array, - hamt_list->size); + hamt_list->size, + 1); if (is_non_value(*objp)) goto error; |