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
36864236
Commit
36864236
authored
Dec 18, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/indeo3: ensure offsets are non negative
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
19ecd675
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
indeo3.c
libavcodec/indeo3.c
+2
-1
No files found.
libavcodec/indeo3.c
View file @
36864236
...
...
@@ -982,7 +982,8 @@ static int decode_frame_headers(Indeo3DecodeContext *ctx, AVCodecContext *avctx,
ctx
->
y_data_size
=
ends
[
0
]
-
starts
[
0
];
ctx
->
v_data_size
=
ends
[
1
]
-
starts
[
1
];
ctx
->
u_data_size
=
ends
[
2
]
-
starts
[
2
];
if
(
FFMAX3
(
y_offset
,
v_offset
,
u_offset
)
>=
ctx
->
data_size
-
16
||
if
(
FFMIN3
(
y_offset
,
v_offset
,
u_offset
)
<
0
||
FFMAX3
(
y_offset
,
v_offset
,
u_offset
)
>=
ctx
->
data_size
-
16
||
FFMIN3
(
y_offset
,
v_offset
,
u_offset
)
<
gb
.
buffer
-
bs_hdr
+
16
||
FFMIN3
(
ctx
->
y_data_size
,
ctx
->
v_data_size
,
ctx
->
u_data_size
)
<=
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"One of the y/u/v offsets is invalid
\n
"
);
...
...
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