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
4e937b1a
Commit
4e937b1a
authored
Jul 23, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/av1_parse: check for OBU header overread
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
e45ed155
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
av1_parse.h
libavcodec/av1_parse.h
+4
-0
No files found.
libavcodec/av1_parse.h
View file @
4e937b1a
...
...
@@ -118,6 +118,10 @@ static inline int parse_obu_header(const uint8_t *buf, int buf_size,
*
obu_size
=
has_size_flag
?
leb128
(
&
gb
)
:
buf_size
-
1
-
extension_flag
;
if
(
get_bits_left
(
&
gb
)
<
0
)
return
AVERROR_INVALIDDATA
;
*
start_pos
=
get_bits_count
(
&
gb
)
/
8
;
return
0
;
...
...
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