avformat/oggdec: Check buf before copying data in to it
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 13 Jul 2015 19:44:26 +0000 (21:44 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 13 Jul 2015 20:10:24 +0000 (22:10 +0200)
commit32d023eb6d0a80be551d8cfb207df61928db930b
tree2cb355350ca6e269f57c4a937c3f574144ac2c04
parent5d346feafa817c4fbc30f7ed0b93b2dad6cef15b
avformat/oggdec: Check buf before copying data in to it

Fixes null pointer dereference
Fixes: aace024653cc62947336b86f8de812ab_signal_sigsegv_a0500f_343_WobblyWindowsIntro.ogg with memlimit 262144

Found-by: Samuel GroƟ, Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/oggdec.c