suppress false positives in ufuzz (#4578)
This commit is contained in:
@@ -226,7 +226,7 @@ function run_code_exec(code, toplevel, timeout) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
return execSync('"' + process.argv[0] + '" --max-old-space-size=4096', {
|
return execSync('"' + process.argv[0] + '" --max-old-space-size=2048', {
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
input: code,
|
input: code,
|
||||||
stdio: "pipe",
|
stdio: "pipe",
|
||||||
@@ -234,7 +234,7 @@ function run_code_exec(code, toplevel, timeout) {
|
|||||||
});
|
});
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
var msg = ex.message.replace(/\r\n/g, "\n");
|
var msg = ex.message.replace(/\r\n/g, "\n");
|
||||||
if (/ETIMEDOUT/.test(msg)) return new Error("Script execution timed out.");
|
if (/ETIMEDOUT|FATAL ERROR:/.test(msg)) return new Error("Script execution timed out.");
|
||||||
var end = msg.indexOf("\n\n-----===== UNCAUGHT EXCEPTION =====-----\n\n");
|
var end = msg.indexOf("\n\n-----===== UNCAUGHT EXCEPTION =====-----\n\n");
|
||||||
var details;
|
var details;
|
||||||
if (end >= 0) {
|
if (end >= 0) {
|
||||||
|
|||||||
@@ -317,7 +317,6 @@ var VAR_NAMES = [
|
|||||||
"NaN",
|
"NaN",
|
||||||
"Infinity",
|
"Infinity",
|
||||||
"arguments",
|
"arguments",
|
||||||
"parseInt",
|
|
||||||
"async",
|
"async",
|
||||||
"await",
|
"await",
|
||||||
];
|
];
|
||||||
@@ -1848,7 +1847,7 @@ function patch_try_catch(orig, toplevel) {
|
|||||||
}
|
}
|
||||||
var new_code = code.slice(0, index) + insert + code.slice(index) + tail_throw;
|
var new_code = code.slice(0, index) + insert + code.slice(index) + tail_throw;
|
||||||
var result = sandbox.run_code(new_code, toplevel);
|
var result = sandbox.run_code(new_code, toplevel);
|
||||||
if (typeof result != "object" || typeof result.name != "string" || typeof result.message != "string") {
|
if (!sandbox.is_error(result)) {
|
||||||
if (!stack.filled && match[1]) stack.push({
|
if (!stack.filled && match[1]) stack.push({
|
||||||
code: code,
|
code: code,
|
||||||
index: index && index - 1,
|
index: index && index - 1,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ var actions = require("./actions");
|
|||||||
var child_process = require("child_process");
|
var child_process = require("child_process");
|
||||||
|
|
||||||
var args = [
|
var args = [
|
||||||
"--max-old-space-size=4096",
|
"--max-old-space-size=2048",
|
||||||
"test/ufuzz",
|
"test/ufuzz",
|
||||||
];
|
];
|
||||||
var iterations;
|
var iterations;
|
||||||
|
|||||||
Reference in New Issue
Block a user