Skip to content

Commit d71f346

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

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
@@ -342,7 +342,7 @@ COLD_FUNC void module_destroy(Module *module)
342342

343343
static bool module_are_literals_compressed(const uint8_t *litT)
344344
{
345-
uint32_t required_buf_size = READ_32_ALIGNED(litT + LITT_UNCOMPRESSED_SIZE_OFFSET);
345+
uint32_t required_buf_size = READ_32_UNALIGNED(litT + LITT_UNCOMPRESSED_SIZE_OFFSET);
346346
return (required_buf_size != 0);
347347
}
348348

0 commit comments

Comments
 (0)