[Mplayer-cvslog] CVS: main/libmpdemux demux_mkv.c,1.13,1.14
Richard Felker CVS
syncmail at mplayerhq.hu
Mon Apr 26 11:22:19 CEST 2004
CVS change done by Richard Felker CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv16533/libmpdemux
Modified Files:
demux_mkv.c
Log Message:
fix exploitable buffer overflow
Index: demux_mkv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/demux_mkv.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- demux_mkv.c 2 Apr 2004 07:36:42 -0000 1.13
+++ demux_mkv.c 26 Apr 2004 09:22:17 -0000 1.14
@@ -1306,11 +1306,11 @@
break;
case MATROSKA_TRACK_AUDIO:
type = "audio";
- sprintf (str, "-aid %u, -alang %s",aid++,mkv_d->tracks[i]->language);
+ sprintf (str, "-aid %u, -alang %.5s",aid++,mkv_d->tracks[i]->language);
break;
case MATROSKA_TRACK_SUBTITLE:
type = "sutitles";
- sprintf (str, "-sid %u, -slang %s",sid++,mkv_d->tracks[i]->language);
+ sprintf (str, "-sid %u, -slang %.5s",sid++,mkv_d->tracks[i]->language);
break;
}
mp_msg(MSGT_DEMUX, MSGL_INFO, "[mkv] Track ID %u: %s (%s), %s\n",
More information about the MPlayer-cvslog
mailing list