mirror of
https://github.com/storytold/craft-anything.git
synced 2026-11-21 15:00:49 +01:00
A Go function table whose later record couldn't be read returned nothing at all, so every complete function before it was lost; unreadable names and the warning limit could drop functions while the table still read as complete. A damaged record now stops the scan with a warning and keeps the functions before it (a wholly unreadable first record is still refused), and the table is marked truncated whenever fewer named functions than declared were recovered. Tests cover Go 1.2, 1.16 and 1.20 layouts, truncated and damaged later records, address overflow, unreadable names and the public ELF inspection.