Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
sixue.cheng
ffmpeg-7.1
Commits
cea0c82d
Commit
cea0c82d
authored
13 years ago
by
Michael Niedermayer
Browse files
Options
Download
Email Patches
Plain Diff
cinepak: check strip_size
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f35f50b3
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavcodec/cinepak.c
+2
-0
libavcodec/cinepak.c
with
2 additions
and
0 deletions
+2
-0
libavcodec/cinepak.c
+
2
-
0
View file @
cea0c82d
...
...
@@ -375,6 +375,8 @@ static int cinepak_decode (CinepakContext *s)
s
->
frame
.
key_frame
=
1
;
strip_size
=
AV_RB24
(
&
s
->
data
[
1
])
-
12
;
if
(
strip_size
<
0
)
return
-
1
;
s
->
data
+=
12
;
strip_size
=
((
s
->
data
+
strip_size
)
>
eod
)
?
(
eod
-
s
->
data
)
:
strip_size
;
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help