avcodec/videodsp_template: Fix overflow of addition
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 14 Jun 2019 22:47:06 +0000 (00:47 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 27 Jun 2019 15:50:47 +0000 (17:50 +0200)
commit297c5c26cddab668f22a2595ddc0a5984ddd4056
tree8218d31eb618d5add28785ef86760e5fb1aea5aa
parent9ede5cab3afae1473a63f148b15af9d88809e646
avcodec/videodsp_template: Fix overflow of addition

Fixes: addition of unsigned offset to 0x7f56fc26a9b6 overflowed to 0x7f56fc26a8be*
Fixes: clusterfuzz-testcase-minimized-mediasource_MP4_AVC1_pipeline_integration_fuzzer-4917949056679936

Reported-by: Matt Wolenetz <wolenetz@google.com>
Reviewed-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 247a1de7f7d9c5628cf188e677d10ce9e12bd2f2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/videodsp_template.c