fix(domain): OD-3 value count runs past the depth cap; the rescue-copy guard covers the archive text
Security gate finding (R4.2): prescan stopped counting once the depth exceeded 64, so a 16 MiB rescue copy nested 65 deep passed the value budget with 66 values and built its 792 MiB tree. The count now runs to the end (the depth verdict unchanged, the PDF probe unchanged); the class is in the budget suite (48 MiB, refused) and pinned in cargo.
This commit is contained in:
1 parent
1695fbb408
commit
593893a7c2
4 files changed
+31
-12
No files matched your search
@@ -264,6 +264,11 @@ const CASES: Case[] = [
|
||||
{ bytes: deepArrays(16 * MiB - 64, 64), name: 'osteo-report.json' },
|
||||
]),
|
||||
},
|
||||
{
|
||||
name: '16 MiB at depth 65 as a rescue copy (security gate: counted past the depth cap)',
|
||||
path: 'copy',
|
||||
build: () => deepArrays(16 * MiB - 64, 65),
|
||||
},
|
||||
{
|
||||
name: '16 MiB dense numbers as a rescue copy',
|
||||
path: 'copy',
|
||||
|
||||
Reference in new issue
Block a user