[MPlayer-cvslog] CVS: main/libmpdemux asf_mmst_streaming.c, 1.28, 1.29
Roberto Togni CVS
syncmail at mplayerhq.hu
Sat Apr 16 01:32:00 CEST 2005
CVS change done by Roberto Togni CVS
Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var2/tmp/cvs-serv27493
Modified Files:
asf_mmst_streaming.c
Log Message:
Fix potential buffer overflow for urls with more than 20 streams
Index: asf_mmst_streaming.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/asf_mmst_streaming.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- asf_mmst_streaming.c 13 Apr 2005 19:21:05 -0000 1.28
+++ asf_mmst_streaming.c 15 Apr 2005 23:31:57 -0000 1.29
@@ -334,8 +334,12 @@
printf ("stream object, stream id: %d\n", stream_id);
+ if (num_stream_ids < 20) {
stream_ids[num_stream_ids] = stream_id;
num_stream_ids++;
+ } else {
+ printf ("too many id, stream skipped");
+ }
} else {
printf ("unknown object\n");
More information about the MPlayer-cvslog
mailing list