[vlc-commits] [Git][videolan/vlc][3.0.x] demux: ogg: do not look for character further than the AnxData buffer

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Mon Aug 24 15:21:43 UTC 2026



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
e1bb16b6 by Steve Lhomme at 2026-08-24T17:11:53+02:00
demux: ogg: do not look for character further than the AnxData buffer

Fixes #30045

Co-authored-by: Asif Nadaf <postasif at protonmail.com>
(cherry picked from commit c30cc8341f18fbe06971e21520b3d496ae5e9d6b)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

- - - - -


1 changed file:

- modules/demux/ogg.c


Changes:

=====================================
modules/demux/ogg.c
=====================================
@@ -3129,7 +3129,7 @@ static void Ogg_ReadAnnodexHeader( demux_t *p_demux,
         if( !strncasecmp( (char*)(&p_oggpacket->packet[28]), "Content-Type: ", 14 ) )
         {
             uint8_t *p = memchr( &p_oggpacket->packet[42], '\r',
-                                 p_oggpacket->bytes - 1 );
+                                 p_oggpacket->bytes - 42 );
             if( p && p[0] == '\r' && p[1] == '\n' )
                 sscanf( (char*)(&p_oggpacket->packet[42]), "%1023s\r\n",
                         content_type_string );



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e1bb16b6d005e005ec9421a29ff96f2d04240585

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e1bb16b6d005e005ec9421a29ff96f2d04240585
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list