# HG changeset patch # User rtognimp # Date 1113607917 0 # Node ID 424386614ad509b154ed1b1967caec132e73e49a # Parent 56541efe420b9b5f9de4d6a29f985cbec5144759 Fix potential buffer overflow for urls with more than 20 streams diff -r 56541efe420b -r 424386614ad5 libmpdemux/asf_mmst_streaming.c --- a/libmpdemux/asf_mmst_streaming.c Fri Apr 15 23:30:44 2005 +0000 +++ b/libmpdemux/asf_mmst_streaming.c Fri Apr 15 23:31:57 2005 +0000 @@ -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");