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
366ac22e
Commit
366ac22e
authored
Jan 23, 2012
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
indeo5: prevent null pointer dereference on broken files
Found by John Villamil <johnv@matasano.com>
parent
7072a6a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
indeo5.c
libavcodec/indeo5.c
+4
-0
No files found.
libavcodec/indeo5.c
View file @
366ac22e
...
...
@@ -453,6 +453,10 @@ static int decode_mb_info(IVI5DecContext *ctx, IVIBandDesc *band,
ref_mb
=
tile
->
ref_mbs
;
offs
=
tile
->
ypos
*
band
->
pitch
+
tile
->
xpos
;
if
(
!
ref_mb
&&
((
band
->
qdelta_present
&&
band
->
inherit_qdelta
)
||
band
->
inherit_mv
))
return
AVERROR_INVALIDDATA
;
/* scale factor for motion vectors */
mv_scale
=
(
ctx
->
planes
[
0
].
bands
[
0
].
mb_size
>>
3
)
-
(
band
->
mb_size
>>
3
);
mv_x
=
mv_y
=
0
;
...
...
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