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
5e9a56a0
Commit
5e9a56a0
authored
Dec 25, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shorten: validate values in fmt chunk search
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
18bcfc91
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
shorten.c
libavcodec/shorten.c
+3
-1
No files found.
libavcodec/shorten.c
View file @
5e9a56a0
...
...
@@ -205,7 +205,7 @@ static int decode_wave_header(AVCodecContext *avctx, const uint8_t *header,
{
int
len
;
short
wave_format
;
const
uint8_t
*
end
=
header
+
header_size
;
if
(
bytestream_get_le32
(
&
header
)
!=
MKTAG
(
'R'
,
'I'
,
'F'
,
'F'
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"missing RIFF tag
\n
"
);
...
...
@@ -221,6 +221,8 @@ static int decode_wave_header(AVCodecContext *avctx, const uint8_t *header,
while
(
bytestream_get_le32
(
&
header
)
!=
MKTAG
(
'f'
,
'm'
,
't'
,
' '
))
{
len
=
bytestream_get_le32
(
&
header
);
if
(
len
<
0
||
end
-
header
-
8
<
len
)
return
AVERROR_INVALIDDATA
;
header
+=
len
;
}
len
=
bytestream_get_le32
(
&
header
);
...
...
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