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, 17 Jun 2018 23:16:04 +0000 (01:16 +0200)
commitb7b178fd0fa1f648ac53ec80d851c3a3a0ddf39d
tree086b62a2943f903d9ce19313dcaf7e3437edd0d0
parentc91f199f5d19a4924edb18fe39a21c5e69bca3d3
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>
(cherry picked from commit 62cb6fadf33de6db386deac92853d4b95c930015)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacpsdsp_template.c