avcodec/tiff: Check geotag count for being non zero
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 21 Mar 2017 00:55:01 +0000 (01:55 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 23 Mar 2017 14:25:48 +0000 (15:25 +0100)
commit3182e19c1c29eef60208a67ad8ecad1d9a2d0694
tree5f25c165769bf990a1f494841eb7a9a95e0ef434
parentaff80aa4ecadd0a2aa8da839f289b815db2ef078
avcodec/tiff: Check geotag count for being non zero

Fixes memleak
Fixes: 874/clusterfuzz-testcase-5252796175613952

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tiff.c