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
fd002035
Commit
fd002035
authored
Dec 09, 2016
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/flacdec: Check for invalid vlcs
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
8addd565
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
flacdec.c
libavcodec/flacdec.c
+7
-1
No files found.
libavcodec/flacdec.c
View file @
fd002035
...
...
@@ -259,7 +259,13 @@ static int decode_residuals(FLACContext *s, int32_t *decoded, int pred_order)
*
decoded
++
=
get_sbits_long
(
&
s
->
gb
,
tmp
);
}
else
{
for
(;
i
<
samples
;
i
++
)
{
*
decoded
++
=
get_sr_golomb_flac
(
&
s
->
gb
,
tmp
,
INT_MAX
,
0
);
int
v
=
get_sr_golomb_flac
(
&
s
->
gb
,
tmp
,
INT_MAX
,
0
);
if
(
v
==
0x80000000
){
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"invalid residual
\n
"
);
return
AVERROR_INVALIDDATA
;
}
*
decoded
++
=
v
;
}
}
i
=
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