Skip to content

Add fuzzers for json encode and decode targets#11

Open
AdamKorcz wants to merge 1 commit intopython:mainfrom
AdamKorcz:json-fuzzers
Open

Add fuzzers for json encode and decode targets#11
AdamKorcz wants to merge 1 commit intopython:mainfrom
AdamKorcz:json-fuzzers

Conversation

@AdamKorcz
Copy link

Adds two harnesses for json encode and decode targets. The decode fuzzer is rather simple: It passes a string to the decode functions. The encode fuzzer creates a structured type with random values and passes it to an encode target.

These fuzzers depend on fuzz_helpers.h which is in #8

Signed-off-by: Adam Korczynski <adam@adalogics.com>
// This fuzzer exercises the following CPython C extension module via
// its Python API, called through the Python C API from C++:
//
// _json — json.loads(str), JSONDecoder().decode(str),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already fuzz json.loads() in json.py?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants