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
b3675f89
Commit
b3675f89
authored
Jun 02, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bink: fix out of reference frame read
Fixes Ticket1374 Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
1bf22c3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
bink.c
libavcodec/bink.c
+5
-0
No files found.
libavcodec/bink.c
View file @
b3675f89
...
...
@@ -1128,6 +1128,11 @@ static int bink_decode_plane(BinkContext *c, GetBitContext *gb, int plane_idx,
xoff
=
get_value
(
c
,
BINK_SRC_X_OFF
);
yoff
=
get_value
(
c
,
BINK_SRC_Y_OFF
);
ref
=
prev
+
xoff
+
yoff
*
stride
;
if
(
ref
<
ref_start
||
ref
>
ref_end
)
{
av_log
(
c
->
avctx
,
AV_LOG_ERROR
,
"Copy out of bounds @%d, %d
\n
"
,
bx
*
8
+
xoff
,
by
*
8
+
yoff
);
return
-
1
;
}
c
->
dsp
.
put_pixels_tab
[
1
][
0
](
dst
,
ref
,
stride
,
8
);
memset
(
dctblock
,
0
,
sizeof
(
*
dctblock
)
*
64
);
dctblock
[
0
]
=
get_value
(
c
,
BINK_SRC_INTER_DC
);
...
...
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