libFLAC/lpc.c: Fix signed integer overflow
commit5598543a9663a846a0b7e42f395207bc44381e41
authorErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 25 Aug 2019 07:59:02 +0000 (25 17:59 +1000)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sun, 15 Sep 2019 20:18:07 +0000 (16 06:18 +1000)
tree035f17f9404d3c04848ae769e0ca0c60d41522a5
parent8147ee7ea214195bddab403840c95d4c748bfedc
libFLAC/lpc.c: Fix signed integer overflow

Do the addition as 64 bits before truncating to 32 bits.

Credit: Oss-Fuzz
Issue: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16459
Testcase: fuzzer_decoder-5728784602365952
src/libFLAC/lpc.c