[xiph-commits] r13561 - icecast/trunk/icecast/src

karl at svn.xiph.org karl at svn.xiph.org
Thu Aug 16 16:03:03 PDT 2007


Author: karl
Date: 2007-08-16 16:03:03 -0700 (Thu, 16 Aug 2007)
New Revision: 13561

Modified:
   icecast/trunk/icecast/src/format_mp3.c
Log:
fix possible crash


Modified: icecast/trunk/icecast/src/format_mp3.c
===================================================================
--- icecast/trunk/icecast/src/format_mp3.c	2007-08-16 22:52:24 UTC (rev 13560)
+++ icecast/trunk/icecast/src/format_mp3.c	2007-08-16 23:03:03 UTC (rev 13561)
@@ -176,7 +176,7 @@
             metadata++;
             if (strncmp (metadata, "StreamTitle='", 13))
                 break;
-            if ((end = strstr (metadata, "\';")) == NULL)
+            if ((end = strstr (metadata+13, "\';")) == NULL)
                 break;
             len = (end - metadata) - 13;
             p = calloc (1, len+1);



More information about the commits mailing list