OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14bec7d
)
avcodec/ivi_common: use av_mallocz() to allocate mbs array
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 23 Dec 2013 17:09:58 +0000
(18:09 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 26 Dec 2013 13:53:39 +0000
(14:53 +0100)
Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7f1dffa1c016_8245_sasha.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/ivi_common.c
patch
|
blob
|
history
diff --git
a/libavcodec/ivi_common.c
b/libavcodec/ivi_common.c
index
9b5f5f8
..
a4d2434
100644
(file)
--- a/
libavcodec/ivi_common.c
+++ b/
libavcodec/ivi_common.c
@@
-363,7
+363,7
@@
static int ivi_init_tiles(IVIBandDesc *band, IVITile *ref_tile,
band->mb_size);
av_freep(&tile->mbs);
- tile->mbs = av_malloc(tile->num_MBs * sizeof(IVIMbInfo));
+ tile->mbs = av_malloc
z
(tile->num_MBs * sizeof(IVIMbInfo));
if (!tile->mbs)
return AVERROR(ENOMEM);