From da7e9c8bbc457810ce01b88c22f76e31b8b6d5d1 Mon Sep 17 00:00:00 2001 From: Steve Fink Date: Mon, 26 Aug 2013 09:04:09 -0700 Subject: [PATCH] Bug 909363 - Mark redirect() as unsafe for fuzzing. r=till --HG-- extra : rebase_source : bb748d87138e71afe3bcfdaedc958e5b0ef20fd5 --- js/src/shell/js.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/src/shell/js.cpp b/js/src/shell/js.cpp index 1afa27669e3e..b2796216f7ee 100644 --- a/js/src/shell/js.cpp +++ b/js/src/shell/js.cpp @@ -3909,11 +3909,6 @@ static const JSFunctionSpecWithHelp shell_functions[] = { " Read filename into returned string. Filename is relative to the directory\n" " containing the current script."), - JS_FN_HELP("redirect", RedirectOutput, 2, 0, -"redirect(stdoutFilename[, stderrFilename])", -" Redirect stdout and/or stderr to the named file. Pass undefined to avoid\n" -" redirecting. Filenames are relative to the current working directory."), - JS_FN_HELP("compile", Compile, 1, 0, "compile(code)", " Compiles a string to bytecode, potentially throwing."), @@ -4018,6 +4013,11 @@ static const JSFunctionSpecWithHelp fuzzing_unsafe_functions[] = { "pc2line(fun[, pc])", " Map PC to line number."), + JS_FN_HELP("redirect", RedirectOutput, 2, 0, +"redirect(stdoutFilename[, stderrFilename])", +" Redirect stdout and/or stderr to the named file. Pass undefined to avoid\n" +" redirecting. Filenames are relative to the current working directory."), + JS_FN_HELP("setThrowHook", SetThrowHook, 1, 0, "setThrowHook(f)", " Set throw hook to f."),