Stream: git-wasmtime

Topic: wasmtime / PR #2511 Fix jitdump header magic field on big...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 15 2020 at 09:40):

uweigand opened PR #2511 from endian-jitdump to main:

The jitdump header contains a "magic" field that is defined to hold
the value 0x4A695444 as u32 in native endianness. (This allows
consumers of the file to detect the endianness of the platform
where the file was written, and apply it when reading other fields.)

However, current code always writes 0x4A695444 in little-endian
byte order, even on big-endian system. This makes consumers fail
when attempting to read files written on big-endian platforms.

Fixed by always writing the magic in native endianness.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Dec 15 2020 at 14:44):

alexcrichton merged PR #2511.


Last updated: Dec 23 2024 at 12:05 UTC