A coverage-guided fuzzer for Python and Python extensions based on libFuzzer
91
Build a fuzzing test harness for a URL parsing utility. The test should verify that a URL parser correctly handles various malformed inputs without crashing.
Create a fuzzing test that:
The URL parser should:
@generates
def parse_url(url: str) -> dict:
"""
Parse a URL string into its components.
Args:
url: The URL string to parse
Returns:
Dictionary with keys: protocol, domain, path
Raises:
ValueError: If the URL is invalid or empty
"""
pass
def test_one_input(data: bytes) -> None:
"""
Fuzzing entry point that receives random bytes.
Args:
data: Random bytes from the fuzzer
"""
passProvides coverage-guided fuzzing capabilities for Python code.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-atherisevals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10