test(redos): the lexicon-iframe-src row already discriminates at the shared N
Measured both directions at _REDOS_N=100_000: shipped [^><] 0.375s, vulnerable [^>] 8.95s -- ~24x apart, both ~4-5x clear of the 2.0s bound. Unlike lexicon-script-tag, no per-row override was needed; recorded the margin so a future reader can tell the absence of an override here is measured, not an oversight.
This commit is contained in:
parent
ee73062864
commit
1d49f83a61
1 changed files with 3 additions and 0 deletions
|
|
@ -408,6 +408,9 @@ _REDOS_PAYLOADS = [
|
|||
# (~3.7s at 200k) while the shipped `[^><]` form stays at ~0.8s. 200_000
|
||||
# is this row's own override, not the shared _REDOS_N.
|
||||
("lexicon-script-tag", scan_lexicon, "<script ", 200_000),
|
||||
# Unlike script-tag, this row is not marginal at the shared _REDOS_N: measured
|
||||
# both directions at 100_000 -- shipped `[^><]` 0.375s, vulnerable `[^>]` 8.95s
|
||||
# (~24x apart, both ~4-5x clear of the 2.0s bound). No per-row override needed.
|
||||
("lexicon-iframe-src", scan_lexicon, "<iframe "),
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue