Skip to main content

cpytraceafl-regex

This is a thinly modified version of Matthew Barnett's mrab-regex regular expression library with added instrumentation for use when fuzzing python code with cpytraceafl.

The intention is for fuzzing harnesses to be able to substitute the builtin re module 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 ways.

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 install_rewriter()):

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, cpytraceafl.tracehook.set_map_start() will need to have been initialized with a memory region to write its intrumentation data into. Otherwise you'll get segfaults.

Metadata

Release files for cpytraceafl-regex 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cpytraceafl-regex 0.2.0
File Size Uploaded Provenance Actions
cpytraceafl-regex-0.2.0.tar.gz 679.0 kB Without provenance Details for cpytraceafl-regex-0.2.0.tar.gz

Release files / cpytraceafl-regex-0.2.0.tar.gz

Download URL cpytraceafl-regex-0.2.0.tar.gz
Size 679.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5b6382d2d1329ed278d82d63e8d4b2e02250102fcead5d6897d86ea9b2ede8d9
BLAKE2b-256 checksum
How to use checksums
5933a1921272e4a6d47125fdb1a183463d3103e8423cce764335710335172e13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/44.0.0.post20200601 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.6

Security for cpytraceafl-regex 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page