Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

speed up false positive detection in ufuzz #3996

Merged
merged 1 commit into from Jun 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion test/ufuzz/index.js
Expand Up @@ -1225,7 +1225,7 @@ function patch_try_catch(orig, toplevel) {
var new_code = code.slice(0, index) + insert + code.slice(index);
var result = sandbox.run_code(new_code, toplevel);
if (typeof result != "object" || typeof result.name != "string" || typeof result.message != "string") {
if (match[1]) stack.push({
if (!stack.filled && match[1]) stack.push({
code: code,
index: index,
offset: offset,
Expand All @@ -1241,6 +1241,7 @@ function patch_try_catch(orig, toplevel) {
return orig.slice(0, index) + 'throw new Error("skipping infinite recursion");' + orig.slice(index);
}
}
stack.filled = true;
}
}

Expand Down