oavcodec/aacpsdsp_template: Use unsigned for hs0X to prevent undefined behavior
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 25 May 2018 20:02:20 +0000 (22:02 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 27 May 2018 21:10:12 +0000 (23:10 +0200)
commit62cb6fadf33de6db386deac92853d4b95c930015
tree43c4f5df0466b5d5c16a2721d82067c38ce228d1
parent53f241218d9eac368e2e1c58bcca9bbdf10fd0e1
oavcodec/aacpsdsp_template: Use unsigned for hs0X to prevent undefined behavior

Fixes: signed integer overflow: 1073741842 + 1784008138 cannot be represented in type 'int'
Fixes: 6792/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-5677589835284480

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