]> granicus.if.org Git - php/commitdiff
initialize static buffer with 0's
authorAntony Dovgal <tony2001@php.net>
Thu, 17 Aug 2006 14:32:27 +0000 (14:32 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 17 Aug 2006 14:32:27 +0000 (14:32 +0000)
ext/exif/exif.c

index 928cc898417dae98249c2bc3e71c94c0f0accd74..2328563ce995b4b1784a844e096ba76b23b44beb 100644 (file)
@@ -2785,6 +2785,7 @@ static int exif_process_IFD_TAG(image_info_type *ImageInfo, char *dir_entry, cha
                                // pointers read without the need to free them
                                // explicitley before returning.
                                */
+                               memset(&cbuf, 0, sizeof(cbuf));
                                value_ptr = cbuf;
                        }