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>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commitbe77d7ba7879ceec361f095d108ed1bee98e9a0f
tree038dc6c3ddbe2e2eb379123bb9d3b954f20622ac
parentfe37daf25dc60b92724953224b1a97713c9621e4
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