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 01:13:39 +0000 (03:13 +0200)
commit8c50704ebf1777bee76772c4835d9760b3721057
tree4bcf6e8979c989d641111d9e970e9eb93ae2cf81
parent1c4c78ee4073b2387681d916a167b758369b9216
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>
libavcodec/vorbisdec.c