Open c0ntradicti0n opened 5 months ago
indexOf
, among with a few other functions of the String
class (e.g. startsWith
, endsWith
, includes
) have to be instrumented in a way that the fuzzer can get register the string comparisons happening under the hood. To accomplish this, the Jazzer.js' instrumentor has to be extended.
Hello there,
I tried out a bunch of things and I have a question about the instrumentation.
taking this as a target:
using this command:
and this harness:
the corpus contains one sample: "a string".
The wanted string or expected exception is in version B found very fast, that is nice, but with version A by using "indexOf" it runs forever and there no "interesting" samples are put in the corpus dir.
What is the difference or can I add other instrumentation to make it inspecting this too?