Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
gpshead merged 4 commits intopython:mainfromgpshead:json-fuzzier
Nov 3, 2022
Merged
Changes from1 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
PrevPrevious commit
NextNext commit
restore original comment, no need to edit it
  • Loading branch information
@gpshead
gpshead committedNov 3, 2022
commit8dcc68979b4cc832c04f822f22454596f2a7c8af
4 changes: 3 additions & 1 deletionModules/_xxtestfuzz/fuzzer.c
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp