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>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit4018d8586ffe1fc8d5f7f28df6c010c748d3fb75
treef61e89042f2d4e5a1ccddff6ef81098ffd429b83
parentb172815c3c9bb7dcaa88e388418bbbefd5aa978e
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>
(cherry picked from commit 85c85fffff3f9c75301db3eba1bd5f2fb1e6285d)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h264_parse.c