A modified version of mrab-regex with added cpytraceafl instrumentation
The intention is for fuzzing harnesses to be able to substitute the builtin
library with this, highly compatible, module and thereby allow AFL to generate examples
which pass regular expressions used in the target or explore their limits in interesting
See the original README.mrab-regex.rst for more general information in this library's extended regex features.
Early in the startup of the fuzzing harness, (though after the call to
import regex from sys import modules modules["re"] = regex
code later importing/referencing the
re module should instead be using this instrumented
regex code. Note that before evaluating any regexes,
will need to have been initialized with a memory region to write its intrumentation data
into. Otherwise you'll get segfaults.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.