Skip to content

Commit 9c1c537

Browse files
committed
Fix module_are_literals_compressed to perform an unaligned read
Signed-off-by: Paul Guyot <pguyot@kallisys.net>
1 parent 22ae62a commit 9c1c537

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libAtomVM/module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ COLD_FUNC void module_destroy(Module *module)
381381

382382
static bool module_are_literals_compressed(const uint8_t *litT)
383383
{
384-
uint32_t required_buf_size = READ_32_ALIGNED(litT + LITT_UNCOMPRESSED_SIZE_OFFSET);
384+
uint32_t required_buf_size = READ_32_UNALIGNED(litT + LITT_UNCOMPRESSED_SIZE_OFFSET);
385385
return (required_buf_size != 0);
386386
}
387387

0 commit comments

Comments
 (0)