avcodec/hevcdec: Check delta_luma_weight_l0/1
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 12 Aug 2019 00:17:15 +0000 (02:17 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 13 Aug 2019 14:48:38 +0000 (16:48 +0200)
commit021f29506b493376d62cdb5b9cb66a6b85e5361f
tree079cb6ae83e0fde229d32d0df8b562a0b0fe74e0
parentde010d229a18fec9af0052af51615b0831945ae0
avcodec/hevcdec: Check delta_luma_weight_l0/1

Fixes: signed integer overflow: 1 + 2147483647 cannot be represented in type 'int'
Fixes: 16041/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_HEVC_fuzzer-5685680656613376

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/hevcdec.c