php-cluster: doctrine-orm-0001 + composer-0003 CWE-407 defects; count 668→670
doctrine-orm-0001: ClassMetadata::addSubClass in_array O(S²) subclasses list HIGH - src/Mapping/ClassMetadata.php addSubClass() scans plain $subClasses list - addSubClasses($parent->subClasses) called in doLoadMetadata: O(S²) per class - Fix: parallel $subClassesSet hash for O(1) membership; 500x at S=1000 composer-0003: InstalledRepository::getDependents in_array O(P²) needles list MEDIUM - needles array grows during foreach($packages) loop, in_array scan 3 sites - $packagesFoundSet already exists for cycle-detection but needles is separate - Fix: add $needlesSet = array_fill_keys($needles, true), mirror growth; 1000x at P=1000 cayley: CLEAN (confirmed -- map-based seen/pathMap throughout) tinkerpop: CLEAN (confirmed -- existing CLEAN.md valid, sort ArrayList is query-plan-time only)
This commit is contained in:
parent
7491349edc
commit
ac82cff865
20 changed files with 427 additions and 9 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# UNDF: UNDF-2026-000000316
|
||||
# UNDF: UNDF-2026-000000106
|
||||
diff --git a/src/feature/nodelist/routerlist.c b/src/feature/nodelist/routerlist.c
|
||||
index 3f82d45..c1e8b9f 100644
|
||||
--- a/src/feature/nodelist/routerlist.c
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# UNDF: UNDF-2026-000000317
|
||||
# UNDF: UNDF-2026-000000187
|
||||
diff --git a/src/feature/nodelist/nodelist.c b/src/feature/nodelist/nodelist.c
|
||||
index abc1234..def5678 100644
|
||||
--- a/src/feature/nodelist/nodelist.c
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# UNDF: UNDF-2026-000000318
|
||||
# UNDF: UNDF-2026-000000231
|
||||
diff --git a/src/core/or/scheduler_kist.c b/src/core/or/scheduler_kist.c
|
||||
index abc1234..def5678 100644
|
||||
--- a/src/core/or/scheduler_kist.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue