Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
ac77c549
Commit
ac77c549
authored
Aug 22, 2019
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/target_dec_fuzzer: Do not increase max_pixels
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
b29c7bcb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
target_dec_fuzzer.c
tools/target_dec_fuzzer.c
+3
-2
No files found.
tools/target_dec_fuzzer.c
View file @
ac77c549
...
@@ -180,12 +180,13 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
...
@@ -180,12 +180,13 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
}
}
AVCodecContext
*
ctx
=
avcodec_alloc_context3
(
NULL
);
AVCodecContext
*
ctx
=
avcodec_alloc_context3
(
c
);
AVCodecContext
*
parser_avctx
=
avcodec_alloc_context3
(
NULL
);
AVCodecContext
*
parser_avctx
=
avcodec_alloc_context3
(
NULL
);
if
(
!
ctx
||
!
parser_avctx
)
if
(
!
ctx
||
!
parser_avctx
)
error
(
"Failed memory allocation"
);
error
(
"Failed memory allocation"
);
ctx
->
max_pixels
=
maxpixels_per_frame
;
//To reduce false positive OOM and hangs
if
(
ctx
->
max_pixels
==
0
||
ctx
->
max_pixels
>
maxpixels_per_frame
)
ctx
->
max_pixels
=
maxpixels_per_frame
;
//To reduce false positive OOM and hangs
if
(
size
>
1024
)
{
if
(
size
>
1024
)
{
GetByteContext
gbc
;
GetByteContext
gbc
;
...
...
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