muaddib-scanner 2.11.141 → 2.11.142
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -53,10 +53,9 @@ const {
|
|
|
53
53
|
// pattern (e.g. nested groups like `((a+)x)+`) can slip past it.
|
|
54
54
|
// Layer 2 (hard bound): the monitor runs every scan in a Worker with a 45s
|
|
55
55
|
// STATIC_SCAN_TIMEOUT_MS -> worker.terminate() (src/monitor/queue.js). V8 TerminateExecution
|
|
56
|
-
// interrupts even a running regex
|
|
57
|
-
// mid-backtrack
|
|
58
|
-
//
|
|
59
|
-
// is bounded to <=45s and the worker is killed.
|
|
56
|
+
// interrupts even a running regex — verified empirically that terminate() returns
|
|
57
|
+
// mid-backtrack on BOTH the dev box (Node 24 / V8 13.6: ~6ms) and the production VPS
|
|
58
|
+
// (Node 20.20.0: ~8ms). So a layer-1 bypass is bounded to <=45s and the worker is killed.
|
|
60
59
|
// The CLI runs the pipeline inline (src/index.js) and has no such backstop — one-shot,
|
|
61
60
|
// Ctrl-C-able, lower severity.
|
|
62
61
|
//
|