Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions Sources/FuzzilliCli/Profiles/NovaProfile.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

import Fuzzilli

let novaProfile = Profile(
processArgs: { randomize in
var args: [String] = []
guard randomize else { return args }
return args
},

processEnv: [:],

maxExecsBeforeRespawn: 1000,

timeout: 250,

codePrefix: """
""",

codeSuffix: """
""",

ecmaVersion: ECMAScriptVersion.es6,

startupTests: [
// Check that the fuzzilli integration is available.
("fuzzilli('FUZZILLI_PRINT', 'test')", .shouldSucceed),

// Check that common crash types are detected.
("fuzzilli('FUZZILLI_CRASH', 0)", .shouldCrash),
//("fuzzilli('FUZZILLI_CRASH', 1)", .shouldCrash),
//("fuzzilli('FUZZILLI_CRASH', 2)", .shouldCrash),

// TODO we could try to check that OOM crashes are ignored here ( with.shouldNotCrash).
],

additionalCodeGenerators: [],

additionalProgramTemplates: WeightedList<ProgramTemplate>([]),

disabledCodeGenerators: [],

disabledMutators: [],

additionalBuiltins: [:],

additionalObjectGroups: [],

optionalPostProcessor: nil
)
1 change: 1 addition & 0 deletions Sources/FuzzilliCli/Profiles/Profile.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,5 @@ let profiles = [
"v8holefuzzing": v8HoleFuzzingProfile,
"serenity": serenityProfile,
"njs": njsProfile,
"nova": novaProfile,
]
1 change: 1 addition & 0 deletions Targets/Nova/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Nova](https://github.com/trynova/nova) can be used unpatched with Fuzilli via the external [nova_fuzz](https://github.com/pcwizz/nova_fuzz) crate which implements the REPL harness.