8000 bpo-44113: Update __xxtestfuzz not to use Py_SetProgramName by corona10 · Pull Request #26083 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

bpo-44113: Update __xxtestfuzz not to use Py_SetProgramName #26083

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 5 commits into from
May 12, 2021
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
bpo-44113: Add assert
  • Loading branch information
corona10 committed May 12, 2021
commit acab08b2a916cd4868e6430527d0e2b04c62e5df
2 changes: 2 additions & 0 deletions Modules/_xxtestfuzz/fuzzer.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,8 @@ int LLVMFuzzerInitialize(int *argc, char ***argv) {
(And we bitwise or when running multiple tests to verify that normally we
only return 0.) */
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
assert(Py_IsInitialized());

int rv = 0;

#if !defined(_Py_FUZZ_ONE) || defined(_Py_FUZZ_fuzz_builtin_float)
Expand Down
0