You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried out a bunch of things and I have a question about the instrumentation.
taking this as a target:
module.exports.f = (s) => {
if (s.indexOf( "a very long string") === 0 ) // VERSION A
//if (s === "a very long string") // VERSION B
throw new Error("FOUND: " + s);
}
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: