Merge pull request #14202 from alalek:fix_ossfuzz_13285

pull/14206/head
Alexander Alekhin 6 years ago
commit 7142f46d1c
  1. 2
      modules/imgcodecs/src/grfmt_tiff.cpp

@ -214,6 +214,8 @@ bool TiffDecoder::readHeader()
&TiffDecoderBufHelper::write, &TiffDecoderBufHelper::seek,
&TiffDecoderBufHelper::close, &TiffDecoderBufHelper::size,
&TiffDecoderBufHelper::map, /*unmap=*/0 );
if (!tif)
delete buf_helper;
}
else
{

Loading…
Cancel
Save