Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a15a7bca
Commit
a15a7bca
authored
Jun 08, 2019
by
Ammar Askar
Committed by
Gregory P. Smith
Jun 08, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-29505: Fix interpreter in fuzzing targets to be relocatable (GH-13907)
parent
d407d2a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Modules/_xxtestfuzz/fuzzer.c
Modules/_xxtestfuzz/fuzzer.c
+8
-0
No files found.
Modules/_xxtestfuzz/fuzzer.c
View file @
a15a7bca
...
...
@@ -88,6 +88,14 @@ static int _run_fuzz(const uint8_t *data, size_t size, int(*fuzzer)(const char*
/* CPython generates a lot of leak warnings for whatever reason. */
int
__lsan_is_turned_off
(
void
)
{
return
1
;
}
wchar_t
wide_program_name
[
NAME_MAX
];
int
LLVMFuzzerInitialize
(
int
*
argc
,
char
***
argv
)
{
wchar_t
*
wide_program_name
=
Py_DecodeLocale
(
*
argv
[
0
],
NULL
);
Py_SetProgramName
(
wide_program_name
);
return
0
;
}
/* Fuzz test interface.
This returns the bitwise or of all fuzz test's return values.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment