qdm2dec: fix buffer overflow.
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 18 Nov 2011 16:48:31 +0000 (17:48 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 21 Nov 2011 21:01:29 +0000 (22:01 +0100)
commit4b0f8aed13efc53b62b5fb2eabdc55cd4c0967ae
treedb8ad9fc315aab043b63c98ad1a6a574e66cc144
parent2c8ac664561a1843f299295443720ce83105c024
qdm2dec: fix buffer overflow.
Fixes NGS00144

This also adds a few lines of code from master that are needed for this fix.

Thanks to Phillip for suggestions to improve the patch.
Found-by: Phillip Langlois
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit a6a61a6d1d4da219a6fe29250e2a6b28f9d05524)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/qdm2.c