Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/connor4312/js-fuzz
/ functions
Functions
152 in github.com/connor4312/js-fuzz
⨍
Functions
152
◇
Types & classes
104
↓ 32 callers
Function
randn
(a: number, b?: number)
packages/js-fuzz-core/src/Math.ts:44
↓ 19 callers
Method
write
* Updates stats information from the fuzzer.
packages/js-fuzz-cli/src/reporters/index.ts:11
↓ 12 callers
Function
dupe
(buf: Buffer)
packages/js-fuzz-core/src/mutations/algorithms/util.ts:21
↓ 10 callers
Method
emitStat
* Emits the given stat to the output stream.
packages/js-fuzz-core/src/Cluster.ts:165
↓ 7 callers
Method
branch
()
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:133
↓ 6 callers
Method
add
* Stores the artifact in the set.
packages/js-fuzz-core/src/artifact-set/index.ts:7
↓ 6 callers
Method
getUnread
* Returns the slice of the buffer that has been written but not read yet. * This will share memory with the underlying buffer and is NOT safe to
packages/js-fuzz-core/src/protocol/rw-buffer.ts:28
↓ 6 callers
Function
pickOne
(arr: ReadonlyArray<T>)
packages/js-fuzz-core/src/Math.ts:55
↓ 5 callers
Method
all
* Gets all inputs from the set.
packages/js-fuzz-core/src/artifact-set/index.ts:12
↓ 5 callers
Method
length
* Returns the number of unread bytes in the buffer.
packages/js-fuzz-core/src/protocol/rw-buffer.ts:42
↓ 5 callers
Function
prependExpression
* Prepends the list of statements to the provided expression and returns it.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:54
↓ 5 callers
Method
underlyingSize
* Gets the underlying buffer size.
packages/js-fuzz-core/src/protocol/rw-buffer.ts:49
↓ 4 callers
Method
advanceRead
* Advances the read pointer by the given amount.
packages/js-fuzz-core/src/protocol/rw-buffer.ts:35
↓ 4 callers
Method
attach
* Attaches an ipc reader/writer to the streams.
packages/js-fuzz-core/src/protocol/protocol.ts:17
↓ 4 callers
Function
chooseLength
(max: number)
packages/js-fuzz-core/src/mutations/algorithms/util.ts:6
↓ 4 callers
Method
getCorpusDir
()
packages/js-fuzz-core/src/Serializer.ts:155
↓ 4 callers
Method
mutate
* Runs the mutation on the buffer, returning a new buffer. If the * mutation can't be run right now, this will return null.
packages/js-fuzz-core/src/mutations/algorithms/index.ts:33
↓ 4 callers
Function
roughWrap
(input: number, threshold: number)
packages/js-fuzz-core/src/mutations/algorithms/util.ts:30
↓ 4 callers
Method
scoreInput
(input: Input)
packages/js-fuzz-core/src/Corpus.ts:122
↓ 3 callers
Function
ensureDir
(path: string)
packages/js-fuzz-core/src/Serializer.ts:53
↓ 3 callers
Function
getArtifactId
(data: IArtifact<unknown> | Buffer)
packages/js-fuzz-core/src/artifact-set/index.ts:38
↓ 3 callers
Method
instrument
* Instruments the provided code with branch analysis instructions.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:97
↓ 3 callers
Method
kill
* Kills the underlying process and returns a promise that's resolved * when the process exits. The process will be forcefully terminated * if it
packages/js-fuzz-core/src/Cluster.ts:93
↓ 3 callers
Method
spawn
()
packages/js-fuzz-core/src/Cluster.ts:226
↓ 2 callers
Method
addLiterals
* Adds a new literal that can be used for mutations.
packages/js-fuzz-core/src/mutations/mutator.ts:21
↓ 2 callers
Method
addToSet
(code: string, literals: Set<string>)
packages/js-fuzz-core/src/instrumentation/literal-extractor.ts:44
↓ 2 callers
Method
clearTimeout
()
packages/js-fuzz-core/src/Cluster.ts:117
↓ 2 callers
Method
createPropertyAccess
( service: K, method: keyof { [J in keyof IRuntimeServices[K]]: IRuntimeServices[K][J] extends
packages/js-fuzz-core/src/runtime/runtime.ts:64
↓ 2 callers
Function
createRandomNumberGenerator
(seed: number)
packages/js-fuzz-core/src/Math.ts:63
↓ 2 callers
Method
emitFatalError
* Emits the fatal error to the output stream.
packages/js-fuzz-core/src/Cluster.ts:172
↓ 2 callers
Function
ensureBlock
* Wraps the node as a block statement if it isn't already on.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:21
↓ 2 callers
Function
exit
(code: number)
packages/js-fuzz-cli/src/index.ts:14
↓ 2 callers
Method
getCrashersDir
()
packages/js-fuzz-core/src/Serializer.ts:151
↓ 2 callers
Function
getMicroTime
* Returns a relative time in microseconds.
packages/js-fuzz-core/src/Worker.ts:24
↓ 2 callers
Method
getScore
* Returns whether this input resulted in more interesting behavior * that the other one. This is mostly ported from go-fuzz * @see https://git.i
packages/js-fuzz-core/src/input/input.ts:47
↓ 2 callers
Method
hookRequire
* Hooks the transformation function into Node's require(). Returns a * function that can be used to unhook it.
packages/js-fuzz-core/src/instrumentation/hook-manager.ts:18
↓ 2 callers
Function
prependBlock
* Prepends the list of statements to the provided block and returns it. If * the block to be prepended to is already a BlockExpression, we'll just *
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:38
↓ 2 callers
Method
put
* Stores the work summary and the coverage file.
packages/js-fuzz-core/src/Corpus.ts:78
↓ 2 callers
Method
reset
()
packages/js-fuzz-core/src/runtime/coverage-hash.ts:26
↓ 2 callers
Function
resetRandomNumberGenerator
()
packages/js-fuzz-core/src/Math.ts:27
↓ 2 callers
Function
setRandomNumberGenerator
(generator: () => number)
packages/js-fuzz-core/src/Math.ts:34
↓ 2 callers
Method
shutdown
* Stops the server.
packages/js-fuzz-core/src/Cluster.ts:212
↓ 2 callers
Method
start
()
packages/js-fuzz-core/src/Worker.ts:47
↓ 2 callers
Method
start
* Boots the cluster.
packages/js-fuzz-core/src/Cluster.ts:187
↓ 2 callers
Method
storeCrasherFile
(hash: string, error: string, rawInput: Buffer)
packages/js-fuzz-core/src/Serializer.ts:138
↓ 2 callers
Function
writeFileAsync
(path: string, contents: string | Buffer)
packages/js-fuzz-core/src/Serializer.ts:29
↓ 2 callers
Method
writeJson
(data: object)
packages/js-fuzz-cli/src/reporters/json.ts:47
↓ 1 callers
Method
Deserialize
* Deserializes the input string to a qualified Input object
packages/js-fuzz-core/src/input/input.ts:111
↓ 1 callers
Method
Spawn
* Creates a new Worker instance and returns a promise that resolves * when it has signaled it's ready.
packages/js-fuzz-core/src/Cluster.ts:132
↓ 1 callers
Method
accessOwnProperty
(property: string)
packages/js-fuzz-core/src/runtime/inliner.ts:4
↓ 1 callers
Method
addRegex
(stmt: RegExpLiteral, literals: Set<string>)
packages/js-fuzz-core/src/instrumentation/literal-extractor.ts:60
↓ 1 callers
Method
all
()
packages/js-fuzz-core/src/artifact-set/disk-artifact-set.ts:40
↓ 1 callers
Method
call
* Creates an ES node that calls an expression on the runtime.
packages/js-fuzz-core/src/runtime/runtime.ts:38
↓ 1 callers
Function
createAll
(container: Container)
packages/js-fuzz-core/src/mutations/algorithms/index.ts:39
↓ 1 callers
Function
createContainer
()
packages/js-fuzz-core/src/dependencies.ts:26
↓ 1 callers
Function
createCoverageId
(counter: number)
packages/js-fuzz-core/src/runtime/coverage-hash.ts:15
↓ 1 callers
Method
decodeInputs
()
packages/js-fuzz-core/src/protocol/protocol.ts:67
↓ 1 callers
Method
decodeMessage
(kindId: number, input: Buffer)
packages/js-fuzz-core/src/protocol/protocol.ts:73
↓ 1 callers
Method
detach
* Detaches the instrumenter from intercepting new code.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:87
↓ 1 callers
Method
detect
(code: string)
packages/js-fuzz-core/src/instrumentation/literal-extractor.ts:38
↓ 1 callers
Method
detectAll
* Detects and returns all literals in files required synchronously within * the given function.
packages/js-fuzz-core/src/instrumentation/literal-extractor.ts:22
↓ 1 callers
Method
doWork
(input: Buffer)
packages/js-fuzz-core/src/Worker.ts:113
↓ 1 callers
Function
flattenBuckets
* Evens off the statement count in the coverage into count "buckets" and * returns the sum of all buckets.
packages/js-fuzz-core/src/Worker.ts:12
↓ 1 callers
Method
foundLiterals
(literals: ReadonlyArray<string>)
packages/js-fuzz-core/src/Corpus.ts:24
↓ 1 callers
Method
getAllInputs
* Returns all inputs stored in the corpus.
packages/js-fuzz-core/src/Corpus.ts:71
↓ 1 callers
Method
grow
* Grows the underlying buffer to ensure there's space to write the * provided message.
packages/js-fuzz-core/src/protocol/rw-buffer.ts:70
↓ 1 callers
Method
install
* Installs the runtime global.
packages/js-fuzz-core/src/runtime/runtime.ts:24
↓ 1 callers
Method
instrumentBranches
* Walks and instruments the AST tree.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:108
↓ 1 callers
Method
isFileExcluded
(name: string)
packages/js-fuzz-core/src/instrumentation/hook-manager.ts:34
↓ 1 callers
Method
isInterestedIn
* Returns if we're interested in getting a full summary report for the * the given hash.
packages/js-fuzz-core/src/Corpus.ts:40
↓ 1 callers
Method
loadCorpus
* Attempts to load a corpus from its serialized version.
packages/js-fuzz-core/src/Serializer.ts:26
↓ 1 callers
Method
loadFromDisk
()
packages/js-fuzz-core/src/artifact-set/disk-artifact-set.ts:48
↓ 1 callers
Function
loadInstrumentationFixtures
()
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.test.ts:6
↓ 1 callers
Function
loadInstrumentationFixtures
()
packages/js-fuzz-core/src/instrumentation/literal-extractor.test.ts:11
↓ 1 callers
Method
monitorWorker
* Hooks into events on the worker and reboots it if it dies.
packages/js-fuzz-core/src/Cluster.ts:236
↓ 1 callers
Method
peek
* Peeks at the next byte in the buffer, advancing the read pointer.
packages/js-fuzz-core/src/protocol/rw-buffer.ts:56
↓ 1 callers
Method
pickWeighted
* Returns an input, weighting by its score.
packages/js-fuzz-core/src/Corpus.ts:52
↓ 1 callers
Function
readFileAsync
(path: string)
packages/js-fuzz-core/src/Serializer.ts:41
↓ 1 callers
Method
requestCoverage
* Sends new work to the working process.
packages/js-fuzz-core/src/Cluster.ts:83
↓ 1 callers
Function
roundUint8ToNextPowerOfTwo
(value: number)
packages/js-fuzz-core/src/Math.ts:8
↓ 1 callers
Method
runFuzz
(input: Buffer, callback: (err: any, res: WorkResult) => void)
packages/js-fuzz-core/src/Worker.ts:78
↓ 1 callers
Method
runFuzzInner
(input: Buffer, callback: (err: any, res: WorkResult) => void)
packages/js-fuzz-core/src/Worker.ts:98
↓ 1 callers
Method
scoreInput
(input: Input)
packages/js-fuzz-core/src/input/corpus.ts:108
↓ 1 callers
Method
seedAndValidateModules
* Does a quick smoke test to see if the module looks like it's set up * correctly to fuzz, throwing an error if it isn't.
packages/js-fuzz-core/src/cluster-factory.ts:34
↓ 1 callers
Method
send
* Sends new work to the working process.
packages/js-fuzz-core/src/Cluster.ts:72
↓ 1 callers
Method
serialize
* Serializes an input into a string.
packages/js-fuzz-core/src/input/input.ts:33
↓ 1 callers
Method
setTimeout
()
packages/js-fuzz-core/src/Cluster.ts:121
↓ 1 callers
Method
setupPrintLoop
()
packages/js-fuzz-cli/src/reporters/json.ts:34
↓ 1 callers
Method
size
* Returns the number of items in our store.
packages/js-fuzz-core/src/Corpus.ts:118
↓ 1 callers
Method
storeCorpus
* Serializes the corpus and saves it on the disk.
packages/js-fuzz-core/src/Serializer.ts:21
↓ 1 callers
Method
storeCrasher
* Store the error that occurred as a result of the input.
packages/js-fuzz-core/src/Serializer.ts:16
↓ 1 callers
Method
storeTimeout
* Returns that a timeout occurred as a result of the provided input.
packages/js-fuzz-core/src/Serializer.ts:11
Method
add
(artifact: IArtifact<T>)
packages/js-fuzz-core/src/artifact-set/disk-artifact-set.ts:24
Method
add
(artifact: IArtifact<T>)
packages/js-fuzz-core/src/artifact-set/memory-artifact-set.ts:6
Method
all
()
packages/js-fuzz-core/src/artifact-set/memory-artifact-set.ts:11
Method
attach
* Hooks the instrumenter into the require() statement.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:79
Method
close
* Shuts down the reporter.
packages/js-fuzz-cli/src/reporters/index.ts:16
Method
close
()
packages/js-fuzz-cli/src/reporters/json.ts:28
Method
constructor
(private root: string = process.cwd())
packages/js-fuzz-core/src/Serializer.ts:61
Method
constructor
( private targetPath: string, @inject(Types.CoverageInstrumentor) private readonly instrumenter: Conve
packages/js-fuzz-core/src/Worker.ts:42
next →
1–100 of 152, ranked by callers