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

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Aug 21 13:13:18 UTC 2026



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
c30cc834 by Steve Lhomme at 2026-08-21T12:57:57+00:00
demux: ogg: do not look for character further than the AnxData buffer

Fixes #30045

Co-authored-by: Asif Nadaf <postasif at protonmail.com>

- - - - -


1 changed file:

- modules/demux/ogg.c


Changes:

=====================================
modules/demux/ogg.c
=====================================
@@ -3212,7 +3212,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 );
             value_size = p ? p - &p_oggpacket->packet[42] : p_oggpacket->bytes - 42;
         }
 



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

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/c30cc8341f18fbe06971e21520b3d496ae5e9d6b
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