diff options
author | Sverker Eriksson <[email protected]> | 2019-03-21 20:27:45 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2019-03-22 19:40:35 +0100 |
commit | 452b5ff296efffaf24cce51993e0b00e2cb48885 (patch) | |
tree | 1f03d2aeba5bae83001b878b7a480569782d599d | |
parent | 78ea501bcc84bd8bd49da97e514c1c3b20682d86 (diff) | |
download | otp-452b5ff296efffaf24cce51993e0b00e2cb48885.tar.gz otp-452b5ff296efffaf24cce51993e0b00e2cb48885.tar.bz2 otp-452b5ff296efffaf24cce51993e0b00e2cb48885.zip |
erts: Fix bug in list_to_ref
First word must be less than (1 bsl 18) for local refs.
-rw-r--r-- | erts/emulator/beam/bif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c index c102ddbee6..eb9b585195 100644 --- a/erts/emulator/beam/bif.c +++ b/erts/emulator/beam/bif.c @@ -4313,7 +4313,7 @@ BIF_RETTYPE list_to_ref_1(BIF_ALIST_1) if(dep == erts_this_dist_entry) { ErtsMagicBinary *mb; Uint32 sid; - if (refn[0] > MAX_REFERENCE) goto bad; + if (refn[0] >= MAX_REFERENCE) goto bad; if (n != ERTS_REF_NUMBERS) goto bad; sid = erts_get_ref_numbers_thr_id(refn); if (sid > erts_no_schedulers) goto bad; |