commit | b946f849bb926dcfb67ed76e0bd8fdb1b53519b2 | [log] [tgz] |
---|---|---|
author | Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> | Tue May 05 22:10:44 2015 +0200 |
committer | Michael Niedermayer <michaelni@gmx.at> | Wed Jun 17 21:50:09 2015 +0200 |
tree | b6ccd9d0cd52354a65a546804169cdaf1222f5eb | |
parent | a64102e25fb94159ee548cb7fb59322770faf7f7 [diff] |
diracdec: avoid overflow of bytes*8 in decode_lowdelay If bytes is large enough, bytes*8 can overflow and become negative. In that case 'bufsize -= bytes*8' causes bufsize to increase instead of decrease. This leads to a segmentation fault. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 9e66b39aa87eb653a6e5d15f70b792ccbf719de7) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>