bpo-29505: Fuzz json module, enforce size limit on int(x) fuzz#13991
Merged
gpshead merged 2 commits intopython:masterfrom Jun 12, 2019
Merged
bpo-29505: Fuzz json module, enforce size limit on int(x) fuzz#13991gpshead merged 2 commits intopython:masterfrom
gpshead merged 2 commits intopython:masterfrom
Conversation
6e76cbc to
4f1f9e6
Compare
gpshead
approved these changes
Jun 12, 2019
Member
gpshead
left a comment
There was a problem hiding this comment.
nice, let the fuzzy fun begin!
Contributor
|
Thanks @ammaraskar for the PR, and @gpshead for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7, 3.8. |
|
GH-14005 is a backport of this pull request to the 3.8 branch. |
|
GH-14006 is a backport of this pull request to the 3.7 branch. |
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Jun 12, 2019
…nGH-13991) * bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts. Contributed by by Ammar Askar for Google. (cherry picked from commit a6e190e) Co-authored-by: Ammar Askar <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this pull request
Jun 12, 2019
…nGH-13991) * bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts. Contributed by by Ammar Askar for Google. (cherry picked from commit a6e190e) Co-authored-by: Ammar Askar <[email protected]>
miss-islington
added a commit
that referenced
this pull request
Jun 12, 2019
) * bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts. Contributed by by Ammar Askar for Google. (cherry picked from commit a6e190e) Co-authored-by: Ammar Askar <[email protected]>
miss-islington
added a commit
that referenced
this pull request
Jun 12, 2019
) * bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts. Contributed by by Ammar Askar for Google. (cherry picked from commit a6e190e) Co-authored-by: Ammar Askar <[email protected]>
lisroach
pushed a commit
to lisroach/cpython
that referenced
this pull request
Sep 10, 2019
…nGH-13991) * bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts. Contributed by by Ammar Askar for Google.
DinoV
pushed a commit
to DinoV/cpython
that referenced
this pull request
Jan 14, 2020
…nGH-13991) * bpo-29505: Enable fuzz testing of the json module, enforce size limit on int(x) fuzz and json input size to avoid timeouts. Contributed by by Ammar Askar for Google.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since CPython seems to be successfully building and being fuzzed in OSS-Fuzz, it's time to add some more interesting fuzzing targets. This PR does the following:
int(x)fuzz target. Since python supports arbitrarily large integers, there is a ratherboring case that is essentially
int("9" * 100000)causing timeouts in this path.json.loads(x)for fuzzing.Potential reviewers: @gpshead @alex (skip-news label can be applied)
https://bugs.python.org/issue29505