fix(bridge): bound regex search work

This commit is contained in:
N0zoM1z0
2026-07-13 22:21:58 +08:00
parent 9f3639f29f
commit 65682ee65c
7 changed files with 615 additions and 12 deletions
+5
View File
@@ -72,6 +72,11 @@ describe("Hopper bridge truthfulness", () => {
);
expect(bridgeSource).toContain("MAX_SEARCH_PATTERN_LENGTH = 256");
expect(bridgeSource).toContain("MAX_SEARCH_VALUE_LENGTH = 4096");
expect(bridgeSource).toContain("MAX_REGEX_BACKTRACKING_PATHS = 10000");
expect(bridgeSource).toContain("MAX_REGEX_CANDIDATE_LENGTH = 4096");
expect(bridgeSource).toContain("MAX_REGEX_SEARCH_WORK_UNITS = 1000000");
expect(bridgeSource).toContain("_checked_regex_paths(");
expect(bridgeSource).toContain("_bounded_regex_matcher(");
expect(bridgeSource).toContain('"value_truncated"');
expect(bridgeSource).toContain("page_end = offset + limit");
expect(bridgeSource).toContain("if offset <= total < page_end:");