Commit graph

4 commits

Author SHA1 Message Date
3986d8dc50 diamond hunt: godot-0009/0010 + meson-0002 + typeorm-0004/0005 + ts-0003; count 629→635
New diamond recursion defects (O(2^D) → O(N)):
- godot-0009: Font::_is_cyclic no visited set — CJK fallback diamond, 2648x at F=4,D=8
- godot-0010: Font::_update_rids_fb no visited set — duplicate RIDs + O(N^2) hot path
- meson-0002: get_internal_static_libraries_recurse link_whole guard missing — 132x at D=10
- typescript-0003: hasBaseType inner check() no visited set — 1024x at D=10; hot on instanceof

New O(N²) defects:
- typeorm-0004: SubjectTopologicalSorter Array.indexOf dedup — 200x at N=400
- typeorm-0005: DepGraph.createDFS result.indexOf + addDependency edge dedup — 300x at N=600

CLEAN confirmed (diamond recursion sweep): bazel, cargo, cmake, composer, dgl, diesel,
doctrine-orm, efcore, helm, mybatis, networkx-deeper, ninja, npm-arborist, peewee, pip,
rubygems, seaorm, sqlalchemy, swift

UNDF: 571→578 assigned; MOAD count: 629→635
2026-03-29 16:52:04 -04:00
560ed54ce3 godot-0005..0008: A* open_list.find(), Skeleton3D child_bones, RestFixer bones HashSet, GLTF extensions HashSet
godot-0005 (UNDF-2026-000000584): AStar3D/AStar2D/AStarGrid2D::_solve()
  open_list.find(e) in heap decrease-key branch — O(N) LocalVector scan per
  node relaxation; fix adds open_index field to Point struct for O(1) lookup.
  core/math/a_star.cpp:373,878 + a_star_grid_2d.cpp:572. 800x ops reduction.

godot-0006 (UNDF-2026-000000585): Skeleton3D::_update_process_order()
  child_bones.has(i) Vector<int> O(C) scan inside O(B) bone rebuild loop;
  fix changes child_bones to HashSet<int>. 24x at wide flat rigs.
  scene/3d/skeleton_3d.cpp:235.

godot-0007 (UNDF-2026-000000586): PostImportPluginSkeletonRestFixer
  bones_to_process.has() + keep_bone_rest.has() — Vector<int> O(B) scan
  inside O(T) animation track loops; O(T*B) total (188x at T=2000/B=500).
  Fix: HashSet<int> for both collections.
  editor/import/3d/post_import_plugin_skeleton_rest_fixer.cpp:201,212,681,742.

godot-0008 (UNDF-2026-000000587): GLTFDocument::_serialize_nodes/animations()
  extensions_used.has() — Vector<String> O(E) scan inside per-node and
  per-animation serialization loops; O((N+A)*E) per export (11x at 3K nodes).
  Fix: Vector<String> extensions_used -> HashSet<String> in gltf_state.h.
  modules/gltf/gltf_document.cpp:443,5496.

Redot-engine is an identical fork: all four defects confirmed present.
8/8 unit tests PASS (GodotAStarSkeletonTest.java).
2026-03-27 23:13:01 -04:00
2e4f7807d5 whitepaper: re-add 10 missing entries + 11 new defects this session, count 578→590; rebuild PDF 2026-03-27 22:18:31 -04:00
083765d3c6 undefect. CWE-407 — 96 sites, 43 ecosystems; godot-0001..0004 game engine physics 2026-03-27 11:32:11 -04:00