avcodec/hevcdec: do basic validity check on delta_chroma_weight and offset
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 27 Jun 2017 12:11:00 +0000 (14:11 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 27 Jun 2017 21:21:12 +0000 (23:21 +0200)
commit2c874548d663225a61b9c25a8b2ce490d26b65fa
treec0617ba9952fa790f2d8fc67523862cd4bfe99de
parent35a5d9715dd82fd00f1d1401ec6be2d3e2eea81c
avcodec/hevcdec: do basic validity check on delta_chroma_weight and offset

Fixes: runtime error: signed integer overflow: 2147483520 + 128 cannot be represented in type 'int'
Fixes: 2385/clusterfuzz-testcase-minimized-6594333576790016

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