java-topology/defects/openttd-0002/test
russell@unturf.com ecc7720d8e openttd: 2 CWE-407 defects, MOAD 0002-0005 CLEAN
openttd-0001: economy.cpp _cargo_delivery_destinations include() O(I^2)
  per-station per-tick cargo delivery dedup via linear vector scan.
  Fix: std::unordered_set. 6.1x speedup at I=500.

openttd-0002: rail_cmd.cpp/road_cmd.cpp affected_trains/affected_rvs
  include() O(T*V) during area track/road type conversion.
  Fix: std::unordered_set. 6.4x speedup at T=2500,V=500.

MOAD-0002 (Intertangle): C-style game engine with extensive globals,
  architectural pattern not isolated defect. CLEAN.
MOAD-0003 (Leaked Context): 2 thread_local uses, both safe. CLEAN.
MOAD-0004 (Logged Secret): STUN tokens logged at debug level 9. CLEAN.
MOAD-0005 (Thundering Herd): single-threaded game loop. CLEAN.
2026-03-31 12:09:28 -04:00
..
openttd-0002-test.cpp openttd: 2 CWE-407 defects, MOAD 0002-0005 CLEAN 2026-03-31 12:09:28 -04:00