Charge every TLV a held segment carries against the reassembly cap
Test / lint (pull_request) Successful in 24s
Test / test (18) (pull_request) Successful in 38s
Test / test (20) (pull_request) Successful in 32s
Test / test (22) (pull_request) Successful in 32s
Test / test (24) (pull_request) Successful in 32s
Test / test (26) (pull_request) Successful in 32s
Mirror / push (push) Successful in 6s

This commit is contained in:
2026-09-25 18:57:10 +02:00
parent 01210e734a
commit 92456b6f6e
4 changed files with 23 additions and 21 deletions
-8
View File
@@ -6,14 +6,6 @@ hard rules first — they constrain every item below.
This is a working file that sets its own rules. The documentation conventions in AGENTS.md do not
govern it, and nothing here is a source anything else may cite.
## Security
- [ ] **Charge a held segment's TLVs for the objects they keep, not only their value octets.** A
peer sending segments that carry thousands of distinct unknown tags with empty values makes
this library hold megabytes of heap per segment that `maxOctets` counts as nothing, up to
255 segments per group. Repeatable tags are already charged per occurrence. From the stability
review of #25.
## Status
The rewrite is **feature complete and green**: the suite, lint and typecheck are clean on Node 18