avcodec/tiff: Update pointer only when the result is used
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 22 Jun 2017 18:21:05 +0000 (20:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Jun 2017 01:05:33 +0000 (03:05 +0200)
commit62b536690d2777b72eefd5af936e4773058f2fdb
treec2277b5e67baa0040966ca0f5b8ebab6c8bffbd7
parenta2d9595a4b4e0e6fe85683ff79774fd618b282cc
avcodec/tiff: Update pointer only when the result is used

Fixes: runtime error: signed integer overflow: 538976288 * 32 cannot be represented in type 'int'
Fixes: 2310/clusterfuzz-testcase-minimized-4534784887881728

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 27f80ab0160d2e64007e1c9799ffd4504cc13eb5)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/tiff.c