Browse Source

probetest: fix possible use of uninitialized data

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer 12 years ago
parent
commit
976175fbe5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tools/probetest.c

+ 2 - 0
tools/probetest.c

@@ -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)) {