mirror of
https://github.com/MacosPorters/betterxen.git
synced 2026-11-26 21:30:43 +00:00
Fix two parser panics found by the pe_parse fuzz target: a truncated PE32+ optional header and unchecked RVA range arithmetic. Also require the 112-byte fixed optional header, check section table and raw data bounds, reject overlapping sections and require the entry point to lie in an executable section. Adds pe_validation regression tests built from original synthetic images. Signed-off-by: Swastick Chowdhury <28708247+Swastickc@users.noreply.github.com>