[libpng16] Initialize profile_header[] in png_handle_iCCP() to fix OSS-fuzz issue.

This commit is contained in:
Glenn Randers-Pehrson
2017-08-05 20:15:52 -05:00
parent 1ebe4f75cc
commit c5c778bcfc
3 changed files with 3 additions and 1 deletions

View File

@@ -1434,7 +1434,7 @@ png_handle_iCCP(png_structrp png_ptr, png_inforp info_ptr, png_uint_32 length)
if (png_inflate_claim(png_ptr, png_iCCP) == Z_OK)
{
Byte profile_header[132];
Byte profile_header[132]={0};
Byte local_buffer[PNG_INFLATE_BUF_SIZE];
png_alloc_size_t size = (sizeof profile_header);