mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Compiled code blocks are sized in multiples of JMEM_ALIGNMENT, but it's possible that some bytes at the end remain unused and get filled with junk. This causes snapshot output to become nondeterministic. To fix this, zero out the compiled code buffer before using it. JerryScript-DCO-1.0-Signed-off-by: Martijn The martijn.the@intel.com