Skip to content

fix(if-image): bound CHD hunk count before allocating (AUDIT B-11) - #27

Merged
SeanShaffer88 merged 1 commit into
mainfrom
fix/chd-hunk-bounds
Nov 9, 2026
Merged

SeanShaffer88 merged 1 commit into
mainfrom
fix/chd-hunk-bounds

Conversation

@SeanShaffer88

Copy link
Copy Markdown
Owner

Panic-path review of all non-test unwrap/expect/index/alloc sites. One real bug: a hostile CHD header (logical size 2^60) aborted the process on open. Fix caps hunk count and checks the uncompressed map against file length. Regression test fails without the fix (verified), passes with it; if-image tests 22/22, fmt and clippy clean. AUDIT.md records B-11 to B-13.


Generated by Claude Code

@SeanShaffer88
SeanShaffer88 merged commit c67315e into main Nov 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants