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
6cf31ef2
Commit
6cf31ef2
authored
Nov 21, 2011
by
Mashiat Sarker Shakkhar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some loop conditions to prevent overreads
parent
a3a8d5e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
wmalosslessdec.c
libavcodec/wmalosslessdec.c
+3
-3
No files found.
libavcodec/wmalosslessdec.c
View file @
6cf31ef2
...
...
@@ -857,7 +857,7 @@ static void use_high_update_speed(WmallDecodeCtx *s, int ich)
{
int
ilms
,
recent
,
icoef
;
s
->
update_speed
[
ich
]
=
16
;
for
(
ilms
=
s
->
cdlms_ttl
[
ich
];
ilms
>=
0
;
ilms
--
)
{
for
(
ilms
=
s
->
cdlms_ttl
[
ich
]
-
1
;
ilms
>=
0
;
ilms
--
)
{
recent
=
s
->
cdlms
[
ich
][
ilms
].
recent
;
if
(
s
->
bV3RTM
)
{
for
(
icoef
=
0
;
icoef
<
s
->
cdlms
[
ich
][
ilms
].
order
;
icoef
++
)
...
...
@@ -873,7 +873,7 @@ static void use_normal_update_speed(WmallDecodeCtx *s, int ich)
{
int
ilms
,
recent
,
icoef
;
s
->
update_speed
[
ich
]
=
8
;
for
(
ilms
=
s
->
cdlms_ttl
[
ich
];
ilms
>=
0
;
ilms
--
)
{
for
(
ilms
=
s
->
cdlms_ttl
[
ich
]
-
1
;
ilms
>=
0
;
ilms
--
)
{
recent
=
s
->
cdlms
[
ich
][
ilms
].
recent
;
if
(
s
->
bV3RTM
)
{
for
(
icoef
=
0
;
icoef
<
s
->
cdlms
[
ich
][
ilms
].
order
;
icoef
++
)
...
...
@@ -901,7 +901,7 @@ static void revert_cdlms(WmallDecodeCtx *s, int tile_size)
s
->
transient
[
ich
]
=
1
;
use_high_update_speed
(
s
,
ich
);
}
for
(
ilms
=
num_lms
;
ilms
>=
0
;
ilms
--
)
{
for
(
ilms
=
num_lms
-
1
;
ilms
>=
0
;
ilms
--
)
{
pred
=
lms_predict
(
s
,
ich
,
ilms
);
channel_coeff
+=
pred
;
lms_update
(
s
,
ich
,
ilms
,
channel_coeff
,
pred
);
...
...
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