avcodec/hevc_ps: Fix integer overflow with num_tile_rows and num_tile_columns
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 13 Jun 2019 13:05:54 +0000 (15:05 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 30 Jun 2019 15:52:13 +0000 (17:52 +0200)
commitc692051252693155c4eecd16f4f8a79caf66cd54
treeafa389b173a5f628a669837c67a55baff4020a13
parent3d4f4f4a15e79c96c3613e5c252b2f5cc4190e18
avcodec/hevc_ps: Fix integer overflow with num_tile_rows and num_tile_columns

Fixes: signed integer overflow: -2147483648 - 1 cannot be represented in type 'int'
Fixes: 14880/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5130977304641536

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/hevc_ps.c
libavcodec/hevc_ps.h