avcodec/microdvddec: Check for string end in 'P' case
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 6 Nov 2015 21:24:23 +0000 (22:24 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Dec 2015 11:40:49 +0000 (12:40 +0100)
commitc15f5068ca830ff35787aa3943bc14da474deece
tree11eee1c10aa1a4e98fe376b832539f72f882724e
parent7ce70e6914bf78759669a005e644d2d9013b925e
avcodec/microdvddec: Check for string end in 'P' case

Fixes out of array read
Fixes: a9502b60f4cecc19475382aee255f73c/asan_heap-oob_1e87fba_2548_a8ad47f6dde36644fe9cdc444d4632d0.sub

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit c719cd6cf79ec21d974b81ba874580f4b8e9eb90)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/microdvddec.c