-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
bpo-29505: Add fuzz tests for float(str), int(str), unicode(str) #2878
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
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
8316e8d
Add basic fuzz tests for a few common builtin functions.
ssbr f47f875
Remove fuzzing of hash() per comment by kcc / oss-fuzz-team.
ssbr d112252
Move LLVMFuzzerTestOneInput into cpython and tweak how test discovery…
ssbr cb9cdc0
Move the fuzzer to C++ so that it builds.
ssbr 7028614
Run the fuzz smoke tests on a little more input, just for kicks.
ssbr 2b34f07
Make the _fuzz module optional.
ssbr f77be65
Actually run the fuzz tests...
ssbr 778c827
Use unittest.main instead of test.support.
ssbr bc3d33f
Use C-style comments. (For porting to Python 2.7 and C89).
ssbr dee024f
Fix build break I accidentally introduced in f77be65.
ssbr 9a00b23
Add a little detail on what the heck this stuff even is, in readme.
ssbr d542130
s/fuzzer.c/fuzzer.cpp/
ssbr 9f16dd4
fuzzer.cpp -> fuzzer.c in faith that I can make it build.
ssbr aa6d784
Make _fuzz required, so that tests never fail on a successful build.
ssbr fa0af73
Fix the windows test failure by just not testing on windows. :)
ssbr 4af5c11
NEWS entry thingermajig.
ssbr fb017ed
Blacklist test_fuzz from coverage tests. It seems to fail with a Memo…
ssbr c4eda5d
Remove outdated comment.
ssbr 83967f9
Fix incorrect mod for base (should be % 37), and document why we're t…
ssbr 52dccc2
Use more idiomatic NULL checks rather than PyErr_Occurred().
ssbr 4327fd9
Attempt to explain a little more why these exist / what the relations…
ssbr 6da8e97
Renamed _fuzz to _xxtestfuzz and cleanup.
gpshead 43620ae
don't skip test_fuzz (besides, it was renamed)
gpshead File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Run the fuzz smoke tests on a little more input, just for kicks.
(i.e. just to get increased confidence we won't immediately crash on fuzzing.) I'm using s# because I'd like to minimize the diff between Python 2 and 3.
- Loading branch information
commit 7028614379bf37a585c08b153088fc527fddb3fc
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the usual
unittest.main(verbosity=<select>)
not work?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I cribbed this from an existing test, (I assumed CPython had some weird test framework), but I see I must've picked the wrong test to crib from. :)
Fixed.