Skip to content

Commit

Permalink
Add more reprl options and have fuzzilli pick them
Browse files Browse the repository at this point in the history
Summary: Give fuzzilli a way to fuzz runtime options. I will adjust the repro job accordingly in a separate diff.

Reviewed By: 0xedward

Differential Revision: D45609078

fbshipit-source-id: 5000d8e96fe6fd93260a8deca56aa793b684d9bf
  • Loading branch information
werew authored and facebook-github-bot committed May 12, 2023
1 parent d1be3ff commit 081b8ac
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tools/fuzzers/fuzzilli/profile/HermesProfile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,18 @@ import Fuzzilli

let hermesProfile = Profile(
getProcessArguments: { (randomizingArguments: Bool) -> [String] in
return ["--reprl"]
var args = ["--reprl"]

guard randomizingArguments else { return args }

if probability(0.5) { args.append("--compile") }
if probability(0.5) { args.append("--lazy-compilation") }
if probability(0.5) { args.append("--optimize") }
if probability(0.5) { args.append("--async-break") }
if probability(0.5) { args.append("--block-scoping") }
if probability(0.5) { args.append("--random-mem-layout") }

return args
},

processEnv: ["UBSAN_OPTIONS": "handle_segv=0"],
Expand Down

0 comments on commit 081b8ac

Please sign in to comment.