OSDN Git Service

avformat/oggparseogm: check input size before reading t
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 23 Dec 2013 17:09:58 +0000 (18:09 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 26 Dec 2013 15:56:10 +0000 (16:56 +0100)
commit0875a9e4fc4cb622758a6b59d4cb07b64f29b8b2
tree76fd07523420d48f195897b83a32d4db805a249a
parent6359872877269fa0c1874587676e952d30f9b79f
avformat/oggparseogm: check input size before reading t

Makes no difference in outcome, as the checks on t have no effect
when t was uninitialized

Fixes use of uninitialized memory
Fixes: msan_uninit-mem_7fa2b7b5d97c_3598_anOTHERS_DixX_in_Ogg_Sample.avi
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggparseogm.c