java-topology/defects/ninja
russell@unturf.com f176e86fbd ninja-0001/ninja-0002: CWE-407 depfile dedup and output validation O(N²)→O(N)
ninja-0001: depfile_parser.cc std::find over ins_/outs_ vectors is O(N) per
token → O(N²) total parse; fix adds unordered_set ins_seen_/outs_seen_ members
to DepfileParser for O(1) duplicate detection (490x at N=1000).

ninja-0002: graph.cc std::find_if over edge->outputs_ called for each depfile
output token is O(M×N); fix builds unordered_set from edge outputs once before
the loop for O(M+N) total (125x at M=N=500).
2026-03-30 06:56:54 -04:00
..
patch ninja-0001/ninja-0002: CWE-407 depfile dedup and output validation O(N²)→O(N) 2026-03-30 06:56:54 -04:00
unit ninja-0001/ninja-0002: CWE-407 depfile dedup and output validation O(N²)→O(N) 2026-03-30 06:56:54 -04:00
ninja-0001-depfile-ticket.md whitepaper: 352/169 — wave4 MEDIUM (hadoop/hbase/nova/neutron/openstack) + fix odl-0002 dup 2026-03-27 15:33:17 -04:00