avcodec/h264_parse: Clear invalid chroma weights in ff_h264_pred_weight_table()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Feb 2018 16:12:28 +0000 (17:12 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 20 Feb 2018 14:27:51 +0000 (15:27 +0100)
commit85c85fffff3f9c75301db3eba1bd5f2fb1e6285d
tree51bcbecfc780b0edd37c69cf704d5bd088466417
parent33fe17bdc88d51a8e0c87aa1e8011aaaf38a7a90
avcodec/h264_parse: Clear invalid chroma weights in ff_h264_pred_weight_table()

Fixes: 6037/clusterfuzz-testcase-minimized-5030249784934400
Fixes: signed integer overflow: 256 * 16992036 cannot be represented in type 'int'

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