Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
7e4e010b
Commit
7e4e010b
authored
Jan 01, 2015
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpeg4audio: check the init_get_bits() return value
Fixes possible invalid reads. CC:libav-stable@libav.org
parent
2dbd35b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mpeg4audio.c
libavcodec/mpeg4audio.c
+4
-2
No files found.
libavcodec/mpeg4audio.c
View file @
7e4e010b
...
...
@@ -80,9 +80,11 @@ int avpriv_mpeg4audio_get_config(MPEG4AudioConfig *c, const uint8_t *buf,
int
bit_size
,
int
sync_extension
)
{
GetBitContext
gb
;
int
specific_config_bitindex
;
int
specific_config_bitindex
,
ret
;
init_get_bits
(
&
gb
,
buf
,
bit_size
);
ret
=
init_get_bits
(
&
gb
,
buf
,
bit_size
);
if
(
ret
<
0
)
return
ret
;
c
->
object_type
=
get_object_type
(
&
gb
);
c
->
sample_rate
=
get_sample_rate
(
&
gb
,
&
c
->
sampling_index
);
c
->
chan_config
=
get_bits
(
&
gb
,
4
);
...
...
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