Archived
Both files diagnose consumes are written by other runs and pasted between people: --diagnose-baseline is an earlier report, the corpus a forwarded file. Neither was read like a supplied file. The baseline got the unbounded Json::parse, and compare_outputs then walked it with throwing accessors -- a member it does not expect throws, and nothing between run_diagnose and main catches -- so a crafted "earlier report" aborted a run with std::terminate after hours of benchmarking work. The corpus got a hand-rolled unbounded fread loop and a raw parser per line: a deep line recursed the parse to a stack overflow before the fingerprint check could ever run. Now: capped read and parse_container on both (the corpus's size refusal lands before the bytes are read), a per-line over/deep refusal that names the line, and one try around the comparison so any structure the comparison does not expect is the refusal it should be -- "the baseline is not shaped like a report", parity not compared, the run keeps its own results. diagnose_test pins the deep line. Found by the 2.1.0 review pass (both security axes, independently).