[vlc-commits] demux: ogg: fix read overflow

Francois Cartegnie git at videolan.org
Wed Feb 27 10:35:18 CET 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Feb 26 22:14:04 2019 +0100| [289041f41a1d7d62da589ed01b1fa832fb68e7fa] | committer: Francois Cartegnie

demux: ogg: fix read overflow

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=289041f41a1d7d62da589ed01b1fa832fb68e7fa
---

 modules/demux/ogg.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 5ef358692b..2ee1845006 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -3082,6 +3082,8 @@ static void Ogg_ReadSkeletonHeader( demux_t *p_demux, logical_stream_t *p_stream
                                     ogg_packet *p_oggpacket )
 {
     demux_sys_t *p_sys = p_demux->p_sys;
+    if( p_oggpacket->bytes < 12 )
+        return;
 
     p_sys->p_skelstream = p_stream;
     /* There can be only 1 skeleton for streams */



More information about the vlc-commits mailing list