Skip to content

Commit 13ddd08

Browse files
committed
Fix bug with erlang:setnode/2 failing with large Creation on 32bits
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
1 parent 98a3e9e commit 13ddd08

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ network. (See issue #1094)
170170
- Fixed possible memory corruption when doing binary matching.
171171
- Fixed an issue related to binary matching and more precisely endianness of bit skipping with OTP 25 and lower
172172
- Fixed an issue with `bs_private_append` that shouldn't gc, affecting code compiled with OTP<25
173+
- Fixed a bug where `erlang:setnode/2` would not work with large creation passed by OTP28 epmd on 32bits platforms
173174

174175
### Changed
175176

src/libAtomVM/nifs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4545,7 +4545,7 @@ static term nif_erlang_setnode_2(Context *ctx, int argc, term argv[])
45454545
UNUSED(argc);
45464546

45474547
VALIDATE_VALUE(argv[0], term_is_atom);
4548-
VALIDATE_VALUE(argv[1], term_is_integer);
4548+
VALIDATE_VALUE(argv[1], term_is_any_integer);
45494549

45504550
avm_int64_t creation = term_maybe_unbox_int64(argv[1]);
45514551
if (UNLIKELY(creation < 0 || creation > ((avm_int64_t) 1) << 32)) {

0 commit comments

Comments
 (0)