Fix WriteCompressedInt32 endianness on big-endian hosts #985
Loading…
Reference in a new issue
No description provided.
Delete branch "medhatiwari/fix-compressed-int32-be-jbevain"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Same fix as https://github.com/dotnet/cecil/pull/517.
Cecil's WriteUInt16/WriteUInt32 are always little-endian. WriteCompressedInt32 copied SRM's IsLittleEndian check, so on big-endian hosts compressed ints in portable PDBs are byte-swapped. That breaks ILLink on native s390x.
Always ReverseEndianness before those writes. New test asserts spec bytes (-100 → BF39, -9076 → DFFFB919).
Made with Cursor
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.