[vlc-devel] commit: ogg: Fix tiny bugger overflow. ( Rémi Duraffort )
git version control
git at videolan.org
Tue Nov 17 09:06:26 CET 2009
vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Wed Nov 11 10:53:18 2009 +0100| [3b5370b5d20771f75ea665b1a50051b06d0ca129] | committer: Rémi Duraffort
ogg: Fix tiny bugger overflow.
(cherry picked from commit 02cd9bdfccbddfea3e66c4822abd4da4812a1c6e)
Signed-off-by: Rémi Duraffort <ivoire at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3b5370b5d20771f75ea665b1a50051b06d0ca129
---
modules/demux/ogg.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index f73e043..78a39eb 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1832,7 +1832,7 @@ static void Ogg_ReadAnnodexHeader( vlc_object_t *p_this,
uint8_t *p = memchr( &p_oggpacket->packet[42], '\r',
p_oggpacket->bytes - 1 );
if( p && p[0] == '\r' && p[1] == '\n' )
- sscanf( (char*)(&p_oggpacket->packet[42]), "%1024s\r\n",
+ sscanf( (char*)(&p_oggpacket->packet[42]), "%1023s\r\n",
content_type_string );
}
More information about the vlc-devel
mailing list