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, 16 Jul 2018 17:06:27 +0000 (19:06 +0200)
commite95a0e261fe92d73130ed5c5cc6e01b4f96c6c53
tree0c72ea9d8c7d0e30c399b45257c47b2903b4f169
parent45ce622f909354847bbbab9b650b2264d33f2d58
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