Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Multimedia
Kdenlive
Commits
b1911119
Commit
b1911119
authored
May 12, 2019
by
Nicolas Carion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix fuzzer compilation
parent
de3e5ee1
Pipeline
#3492
passed with stage
in 15 minutes and 41 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
fuzzer/main_fuzzer.cpp
fuzzer/main_fuzzer.cpp
+1
-1
fuzzer/main_reproducer.cpp
fuzzer/main_reproducer.cpp
+1
-1
No files found.
fuzzer/main_fuzzer.cpp
View file @
b1911119
...
...
@@ -35,7 +35,7 @@ std::unique_ptr<Mlt::Repository> repo(Mlt::Factory::init(nullptr));
extern
"C"
int
LLVMFuzzerTestOneInput
(
const
uint8_t
*
data
,
size_t
size
)
{
qputenv
(
"MLT_TESTS"
,
QByteArray
(
"1"
));
Core
::
build
();
Core
::
build
(
false
);
const
char
*
input
=
reinterpret_cast
<
const
char
*>
(
data
);
char
*
target
=
new
char
[
size
+
1
];
strncpy
(
target
,
input
,
size
);
...
...
fuzzer/main_reproducer.cpp
View file @
b1911119
...
...
@@ -45,7 +45,7 @@ int main(int argc, char **argv)
signal
(
SIGSEGV
,
signalHandler
);
QApplication
app
(
argc
,
argv
);
qputenv
(
"MLT_TESTS"
,
QByteArray
(
"1"
));
Core
::
build
();
Core
::
build
(
false
);
std
::
stringstream
ss
;
std
::
string
str
;
while
(
getline
(
std
::
cin
,
str
))
{
...
...
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