Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-12-15 19:52:37 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-12-15 19:53:32 +0400
commite838c9852e6f0a471a6917083e70e6fe238ba26a (patch)
tree04f64a4de1cbce7bea250c10c0850b3350df6557 /libavcodec/bink.c
parent0e0f6bd4a5796f4f668092d7925a31b9b30fedd4 (diff)
avcodec/bink: use av_mallocz for data
Fixes use of uninitialized memory Fixes msan_uninit-mem_7fe8a5fd759d_2838_SPECTRE.BIK Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/bink.c')
-rw-r--r--libavcodec/bink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bink.c b/libavcodec/bink.c
index 8f8a036d4f..f23542f17e 100644
--- a/libavcodec/bink.c
+++ b/libavcodec/bink.c
@@ -185,7 +185,7 @@ static av_cold int init_bundles(BinkContext *c)
blocks = bw * bh;
for (i = 0; i < BINKB_NB_SRC; i++) {
- c->bundle[i].data = av_malloc(blocks * 64);
+ c->bundle[i].data = av_mallocz(blocks * 64);
if (!c->bundle[i].data)
return AVERROR(ENOMEM);
c->bundle[i].data_end = c->bundle[i].data + blocks * 64;