Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
bb4b0ad8
Commit
bb4b0ad8
authored
Nov 17, 2011
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vp5: Fix illegal read.
Found with Address Sanitizer
parent
e0966eb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
vp5.c
libavcodec/vp5.c
+6
-2
No files found.
libavcodec/vp5.c
View file @
bb4b0ad8
...
...
@@ -185,7 +185,8 @@ static void vp5_parse_coeff(VP56Context *s)
model1
=
model
->
coeff_dccv
[
pt
];
model2
=
model
->
coeff_dcct
[
pt
][
ctx
];
for
(
coeff_idx
=
0
;
coeff_idx
<
64
;
)
{
coeff_idx
=
0
;
for
(;;)
{
if
(
vp56_rac_get_prob
(
c
,
model2
[
0
]))
{
if
(
vp56_rac_get_prob
(
c
,
model2
[
2
]))
{
if
(
vp56_rac_get_prob
(
c
,
model2
[
3
]))
{
...
...
@@ -222,8 +223,11 @@ static void vp5_parse_coeff(VP56Context *s)
ct
=
0
;
s
->
coeff_ctx
[
vp56_b6to4
[
b
]][
coeff_idx
]
=
0
;
}
coeff_idx
++
;
if
(
coeff_idx
>=
64
)
break
;
cg
=
vp5_coeff_groups
[
++
coeff_idx
];
cg
=
vp5_coeff_groups
[
coeff_idx
];
ctx
=
s
->
coeff_ctx
[
vp56_b6to4
[
b
]][
coeff_idx
];
model1
=
model
->
coeff_ract
[
pt
][
ct
][
cg
];
model2
=
cg
>
2
?
model1
:
model
->
coeff_acct
[
pt
][
ct
][
cg
][
ctx
];
...
...
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