MCPcopy Create free account

hub / github.com/connor4312/js-fuzz / functions

Functions152 in github.com/connor4312/js-fuzz

↓ 32 callersFunctionrandn
(a: number, b?: number)
packages/js-fuzz-core/src/Math.ts:44
↓ 19 callersMethodwrite
* Updates stats information from the fuzzer.
packages/js-fuzz-cli/src/reporters/index.ts:11
↓ 12 callersFunctiondupe
(buf: Buffer)
packages/js-fuzz-core/src/mutations/algorithms/util.ts:21
↓ 10 callersMethodemitStat
* Emits the given stat to the output stream.
packages/js-fuzz-core/src/Cluster.ts:165
↓ 7 callersMethodbranch
()
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:133
↓ 6 callersMethodadd
* Stores the artifact in the set.
packages/js-fuzz-core/src/artifact-set/index.ts:7
↓ 6 callersMethodgetUnread
* 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 callersFunctionpickOne
(arr: ReadonlyArray<T>)
packages/js-fuzz-core/src/Math.ts:55
↓ 5 callersMethodall
* Gets all inputs from the set.
packages/js-fuzz-core/src/artifact-set/index.ts:12
↓ 5 callersMethodlength
* Returns the number of unread bytes in the buffer.
packages/js-fuzz-core/src/protocol/rw-buffer.ts:42
↓ 5 callersFunctionprependExpression
* Prepends the list of statements to the provided expression and returns it.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:54
↓ 5 callersMethodunderlyingSize
* Gets the underlying buffer size.
packages/js-fuzz-core/src/protocol/rw-buffer.ts:49
↓ 4 callersMethodadvanceRead
* Advances the read pointer by the given amount.
packages/js-fuzz-core/src/protocol/rw-buffer.ts:35
↓ 4 callersMethodattach
* Attaches an ipc reader/writer to the streams.
packages/js-fuzz-core/src/protocol/protocol.ts:17
↓ 4 callersFunctionchooseLength
(max: number)
packages/js-fuzz-core/src/mutations/algorithms/util.ts:6
↓ 4 callersMethodgetCorpusDir
()
packages/js-fuzz-core/src/Serializer.ts:155
↓ 4 callersMethodmutate
* 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 callersFunctionroughWrap
(input: number, threshold: number)
packages/js-fuzz-core/src/mutations/algorithms/util.ts:30
↓ 4 callersMethodscoreInput
(input: Input)
packages/js-fuzz-core/src/Corpus.ts:122
↓ 3 callersFunctionensureDir
(path: string)
packages/js-fuzz-core/src/Serializer.ts:53
↓ 3 callersFunctiongetArtifactId
(data: IArtifact<unknown> | Buffer)
packages/js-fuzz-core/src/artifact-set/index.ts:38
↓ 3 callersMethodinstrument
* Instruments the provided code with branch analysis instructions.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:97
↓ 3 callersMethodkill
* 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 callersMethodspawn
()
packages/js-fuzz-core/src/Cluster.ts:226
↓ 2 callersMethodaddLiterals
* Adds a new literal that can be used for mutations.
packages/js-fuzz-core/src/mutations/mutator.ts:21
↓ 2 callersMethodaddToSet
(code: string, literals: Set<string>)
packages/js-fuzz-core/src/instrumentation/literal-extractor.ts:44
↓ 2 callersMethodclearTimeout
()
packages/js-fuzz-core/src/Cluster.ts:117
↓ 2 callersMethodcreatePropertyAccess
( service: K, method: keyof { [J in keyof IRuntimeServices[K]]: IRuntimeServices[K][J] extends
packages/js-fuzz-core/src/runtime/runtime.ts:64
↓ 2 callersFunctioncreateRandomNumberGenerator
(seed: number)
packages/js-fuzz-core/src/Math.ts:63
↓ 2 callersMethodemitFatalError
* Emits the fatal error to the output stream.
packages/js-fuzz-core/src/Cluster.ts:172
↓ 2 callersFunctionensureBlock
* Wraps the node as a block statement if it isn't already on.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:21
↓ 2 callersFunctionexit
(code: number)
packages/js-fuzz-cli/src/index.ts:14
↓ 2 callersMethodgetCrashersDir
()
packages/js-fuzz-core/src/Serializer.ts:151
↓ 2 callersFunctiongetMicroTime
* Returns a relative time in microseconds.
packages/js-fuzz-core/src/Worker.ts:24
↓ 2 callersMethodgetScore
* 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 callersMethodhookRequire
* 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 callersFunctionprependBlock
* 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 callersMethodput
* Stores the work summary and the coverage file.
packages/js-fuzz-core/src/Corpus.ts:78
↓ 2 callersMethodreset
()
packages/js-fuzz-core/src/runtime/coverage-hash.ts:26
↓ 2 callersFunctionresetRandomNumberGenerator
()
packages/js-fuzz-core/src/Math.ts:27
↓ 2 callersFunctionsetRandomNumberGenerator
(generator: () => number)
packages/js-fuzz-core/src/Math.ts:34
↓ 2 callersMethodshutdown
* Stops the server.
packages/js-fuzz-core/src/Cluster.ts:212
↓ 2 callersMethodstart
()
packages/js-fuzz-core/src/Worker.ts:47
↓ 2 callersMethodstart
* Boots the cluster.
packages/js-fuzz-core/src/Cluster.ts:187
↓ 2 callersMethodstoreCrasherFile
(hash: string, error: string, rawInput: Buffer)
packages/js-fuzz-core/src/Serializer.ts:138
↓ 2 callersFunctionwriteFileAsync
(path: string, contents: string | Buffer)
packages/js-fuzz-core/src/Serializer.ts:29
↓ 2 callersMethodwriteJson
(data: object)
packages/js-fuzz-cli/src/reporters/json.ts:47
↓ 1 callersMethodDeserialize
* Deserializes the input string to a qualified Input object
packages/js-fuzz-core/src/input/input.ts:111
↓ 1 callersMethodSpawn
* 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 callersMethodaccessOwnProperty
(property: string)
packages/js-fuzz-core/src/runtime/inliner.ts:4
↓ 1 callersMethodaddRegex
(stmt: RegExpLiteral, literals: Set<string>)
packages/js-fuzz-core/src/instrumentation/literal-extractor.ts:60
↓ 1 callersMethodall
()
packages/js-fuzz-core/src/artifact-set/disk-artifact-set.ts:40
↓ 1 callersMethodcall
* Creates an ES node that calls an expression on the runtime.
packages/js-fuzz-core/src/runtime/runtime.ts:38
↓ 1 callersFunctioncreateAll
(container: Container)
packages/js-fuzz-core/src/mutations/algorithms/index.ts:39
↓ 1 callersFunctioncreateContainer
()
packages/js-fuzz-core/src/dependencies.ts:26
↓ 1 callersFunctioncreateCoverageId
(counter: number)
packages/js-fuzz-core/src/runtime/coverage-hash.ts:15
↓ 1 callersMethoddecodeInputs
()
packages/js-fuzz-core/src/protocol/protocol.ts:67
↓ 1 callersMethoddecodeMessage
(kindId: number, input: Buffer)
packages/js-fuzz-core/src/protocol/protocol.ts:73
↓ 1 callersMethoddetach
* Detaches the instrumenter from intercepting new code.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:87
↓ 1 callersMethoddetect
(code: string)
packages/js-fuzz-core/src/instrumentation/literal-extractor.ts:38
↓ 1 callersMethoddetectAll
* Detects and returns all literals in files required synchronously within * the given function.
packages/js-fuzz-core/src/instrumentation/literal-extractor.ts:22
↓ 1 callersMethoddoWork
(input: Buffer)
packages/js-fuzz-core/src/Worker.ts:113
↓ 1 callersFunctionflattenBuckets
* 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 callersMethodfoundLiterals
(literals: ReadonlyArray<string>)
packages/js-fuzz-core/src/Corpus.ts:24
↓ 1 callersMethodgetAllInputs
* Returns all inputs stored in the corpus.
packages/js-fuzz-core/src/Corpus.ts:71
↓ 1 callersMethodgrow
* 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 callersMethodinstall
* Installs the runtime global.
packages/js-fuzz-core/src/runtime/runtime.ts:24
↓ 1 callersMethodinstrumentBranches
* Walks and instruments the AST tree.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:108
↓ 1 callersMethodisFileExcluded
(name: string)
packages/js-fuzz-core/src/instrumentation/hook-manager.ts:34
↓ 1 callersMethodisInterestedIn
* 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 callersMethodloadCorpus
* Attempts to load a corpus from its serialized version.
packages/js-fuzz-core/src/Serializer.ts:26
↓ 1 callersMethodloadFromDisk
()
packages/js-fuzz-core/src/artifact-set/disk-artifact-set.ts:48
↓ 1 callersFunctionloadInstrumentationFixtures
()
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.test.ts:6
↓ 1 callersFunctionloadInstrumentationFixtures
()
packages/js-fuzz-core/src/instrumentation/literal-extractor.test.ts:11
↓ 1 callersMethodmonitorWorker
* Hooks into events on the worker and reboots it if it dies.
packages/js-fuzz-core/src/Cluster.ts:236
↓ 1 callersMethodpeek
* Peeks at the next byte in the buffer, advancing the read pointer.
packages/js-fuzz-core/src/protocol/rw-buffer.ts:56
↓ 1 callersMethodpickWeighted
* Returns an input, weighting by its score.
packages/js-fuzz-core/src/Corpus.ts:52
↓ 1 callersFunctionreadFileAsync
(path: string)
packages/js-fuzz-core/src/Serializer.ts:41
↓ 1 callersMethodrequestCoverage
* Sends new work to the working process.
packages/js-fuzz-core/src/Cluster.ts:83
↓ 1 callersFunctionroundUint8ToNextPowerOfTwo
(value: number)
packages/js-fuzz-core/src/Math.ts:8
↓ 1 callersMethodrunFuzz
(input: Buffer, callback: (err: any, res: WorkResult) => void)
packages/js-fuzz-core/src/Worker.ts:78
↓ 1 callersMethodrunFuzzInner
(input: Buffer, callback: (err: any, res: WorkResult) => void)
packages/js-fuzz-core/src/Worker.ts:98
↓ 1 callersMethodscoreInput
(input: Input)
packages/js-fuzz-core/src/input/corpus.ts:108
↓ 1 callersMethodseedAndValidateModules
* 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 callersMethodsend
* Sends new work to the working process.
packages/js-fuzz-core/src/Cluster.ts:72
↓ 1 callersMethodserialize
* Serializes an input into a string.
packages/js-fuzz-core/src/input/input.ts:33
↓ 1 callersMethodsetTimeout
()
packages/js-fuzz-core/src/Cluster.ts:121
↓ 1 callersMethodsetupPrintLoop
()
packages/js-fuzz-cli/src/reporters/json.ts:34
↓ 1 callersMethodsize
* Returns the number of items in our store.
packages/js-fuzz-core/src/Corpus.ts:118
↓ 1 callersMethodstoreCorpus
* Serializes the corpus and saves it on the disk.
packages/js-fuzz-core/src/Serializer.ts:21
↓ 1 callersMethodstoreCrasher
* Store the error that occurred as a result of the input.
packages/js-fuzz-core/src/Serializer.ts:16
↓ 1 callersMethodstoreTimeout
* Returns that a timeout occurred as a result of the provided input.
packages/js-fuzz-core/src/Serializer.ts:11
Methodadd
(artifact: IArtifact<T>)
packages/js-fuzz-core/src/artifact-set/disk-artifact-set.ts:24
Methodadd
(artifact: IArtifact<T>)
packages/js-fuzz-core/src/artifact-set/memory-artifact-set.ts:6
Methodall
()
packages/js-fuzz-core/src/artifact-set/memory-artifact-set.ts:11
Methodattach
* Hooks the instrumenter into the require() statement.
packages/js-fuzz-core/src/instrumentation/coverage-instrumentor.ts:79
Methodclose
* Shuts down the reporter.
packages/js-fuzz-cli/src/reporters/index.ts:16
Methodclose
()
packages/js-fuzz-cli/src/reporters/json.ts:28
Methodconstructor
(private root: string = process.cwd())
packages/js-fuzz-core/src/Serializer.ts:61
Methodconstructor
( 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