probetest: fix possible use of uninitialized data
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 31 Oct 2012 12:16:52 +0000 (13:16 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 31 Oct 2012 12:16:52 +0000 (13:16 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tools/probetest.c

index 29c27e4..b13c6f9 100644 (file)
@@ -84,6 +84,8 @@ int main(int argc, char **argv)
         pd.buf      = av_realloc(pd.buf, size + AVPROBE_PADDING_SIZE);
         pd.filename = "";
 
+        memset(pd.buf, 0, size + AVPROBE_PADDING_SIZE);
+
         fprintf(stderr, "testing size=%d\n", size);
 
         for (retry = 0; retry < retry_count; retry += FFMAX(size, 32)) {