mirror of
https://github.com/oven-sh/bun
synced 2026-02-12 20:09:04 +00:00
- Add calculateChecksum() method that implements the standard Windows PE checksum algorithm - Automatically update checksum after modifying PE files (adding .bun section, applying Windows settings) - Delete old pe-codesigning-integrity.test.ts that didn't test anything useful - Add comprehensive checksum verification tests using objdump The checksum algorithm matches the Windows standard: - Processes file as 16-bit words - Skips the checksum field itself - Handles overflow with carry folding - Adds file size to final checksum