8000 gh-73691: Increase size limits in _xxtestfuzz by gpshead · Pull Request #99070 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-73691: Increase size limits in _xxtestfuzz #99070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 3, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
restore original comment, no need to edit it
  • Loading branch information
gpshead committed Nov 3, 2022
commit 8dcc68979b4cc832c04f822f22454596f2a7c8af
4 changes: 3 additions & 1 deletion Modules/_xxtestfuzz/fuzzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,9 @@ static int init_json_loads(void) {
}
/* Fuzz json.loads(x) */
static int fuzz_json_loads(const char* data, size_t size) {
/* long inputs could lead to timeouts on boring inputs */
/* Since python supports arbitrarily large ints in JSON,
long inputs can lead to timeouts on boring inputs like
`json.loads("9" * 100000)` */
if (size > MAX_JSON_TEST_SIZE) {
return 0;
}
Expand Down
0