]> granicus.if.org Git - file/commitdiff
If we could not read a field, set it to 0; found by oss-fuzz
authorChristos Zoulas <christos@zoulas.com>
Thu, 6 Apr 2017 19:20:35 +0000 (19:20 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 6 Apr 2017 19:20:35 +0000 (19:20 +0000)
src/cdf.c

index 5f4bc563674d08122caeb77c0cad6d108b8f3e51..2fab6dcfa1fe1048b71f84229c04c5126bfc786a 100644 (file)
--- a/src/cdf.c
+++ b/src/cdf.c
@@ -35,7 +35,7 @@
 #include "file.h"
 
 #ifndef lint
-FILE_RCSID("@(#)$File: cdf.c,v 1.97 2017/03/29 19:45:22 christos Exp $")
+FILE_RCSID("@(#)$File: cdf.c,v 1.98 2017/04/06 19:20:35 christos Exp $")
 #endif
 
 #include <assert.h>
@@ -1039,6 +1039,7 @@ cdf_read_property_info(const cdf_stream_t *sst, const cdf_header_t *h,
                        break;
                default:
                unknown:
+                       memset(&inp[i].pi_val, 0, sizeof(inp[i].pi_val));
                        DPRINTF(("Don't know how to deal with %#x\n",
                            inp[i].pi_type));
                        break;