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
00ab9cda
Commit
00ab9cda
authored
Feb 13, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpeglsdec: Prevent out of array write.
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
dda713f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
jpeglsdec.c
libavcodec/jpeglsdec.c
+3
-0
No files found.
libavcodec/jpeglsdec.c
View file @
00ab9cda
...
@@ -198,6 +198,9 @@ static inline void ls_decode_line(JLSState *state, MJpegDecodeContext *s, void *
...
@@ -198,6 +198,9 @@ static inline void ls_decode_line(JLSState *state, MJpegDecodeContext *s, void *
r
=
ff_log2_run
[
state
->
run_index
[
comp
]];
r
=
ff_log2_run
[
state
->
run_index
[
comp
]];
if
(
r
)
if
(
r
)
r
=
get_bits_long
(
&
s
->
gb
,
r
);
r
=
get_bits_long
(
&
s
->
gb
,
r
);
if
(
x
+
r
*
stride
>
w
)
{
r
=
(
w
-
x
)
/
stride
;
}
for
(
i
=
0
;
i
<
r
;
i
++
)
{
for
(
i
=
0
;
i
<
r
;
i
++
)
{
W
(
dst
,
x
,
Ra
);
W
(
dst
,
x
,
Ra
);
x
+=
stride
;
x
+=
stride
;
...
...
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