avcodec/vorbisdec: Fix off by 1 error in ptns_to_read
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 01:12:34 +0000 (03:12 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 4 Oct 2014 02:14:20 +0000 (04:14 +0200)
commitfdc8f4e5b4f12ba5ef2d7645d5ba628f6ddf14c9
treeeffe8f18983eb672e595bb6c001356d9339131a2
parent603f4ecd14a170104d97ad5ffd64f7d394ed4d07
avcodec/vorbisdec: Fix off by 1 error in ptns_to_read

Fixes read of uninitialized memory
Fixes: asan_heap-uaf_18dac2b_9_asan_heap-uaf_22eb375_208_beta3_test_small.ogg

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 8c50704ebf1777bee76772c4835d9760b3721057)

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