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 21:52:29 +0000 (23:52 +0200)
commiteefc3ca7bed6c389e2c78c4244ee2a41d25b8963
tree9da043b93da8aac916b9d9e7ec14356c9248c708
parenta16558e12204e5ae4597d5d384bbfca293fe74cb
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