aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-15 11:01:01 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2012-01-15 13:54:19 +0100
commit8af6b9711e7a9aa80e825aaf901d533d4ff9b7d5 (patch)
treeae9645ceb7817d8f7d1bfe0a9db9e12793a5c4b8
parentbbf372e1457a1cde5de8df8bdf930560bc9c9631 (diff)
downloadffmpeg-8af6b9711e7a9aa80e825aaf901d533d4ff9b7d5.tar.gz
Fix uninitialized reads for fate-vsynth1-asv2 test.
This is not a real error and memsetting always even when the size did not change is overkill, but it still should be an acceptable trade-off. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
-rw-r--r--libavcodec/asv1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/asv1.c b/libavcodec/asv1.c
index ab5ac8d68e..a2519cb5c2 100644
--- a/libavcodec/asv1.c
+++ b/libavcodec/asv1.c
@@ -411,6 +411,7 @@ static int decode_frame(AVCodecContext *avctx,
av_fast_malloc(&a->bitstream_buffer, &a->bitstream_buffer_size, buf_size + FF_INPUT_BUFFER_PADDING_SIZE);
if (!a->bitstream_buffer)
return AVERROR(ENOMEM);
+ memset(a->bitstream_buffer + buf_size, 0, FF_INPUT_BUFFER_PADDING_SIZE);
if(avctx->codec_id == CODEC_ID_ASV1)
a->dsp.bswap_buf((uint32_t*)a->bitstream_buffer, (const uint32_t*)buf, buf_size/4);