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

dm8tbr at svn.xiph.org dm8tbr at svn.xiph.org
Thu Jun 7 08:57:11 PDT 2012


Author: dm8tbr
Date: 2012-06-07 08:57:11 -0700 (Thu, 07 Jun 2012)
New Revision: 18355

Modified:
   icecast/trunk/icecast/src/format_mp3.c
   icecast/trunk/icecast/src/fserve.c
Log:
This is part of the patch-set addressing CVE-2011-4612.



Modified: icecast/trunk/icecast/src/format_mp3.c
===================================================================
--- icecast/trunk/icecast/src/format_mp3.c	2012-06-07 15:45:44 UTC (rev 18354)
+++ icecast/trunk/icecast/src/format_mp3.c	2012-06-07 15:57:11 UTC (rev 18355)
@@ -620,7 +620,7 @@
             memcpy (meta->data, source_mp3->build_metadata,
                     source_mp3->build_metadata_len);
 
-            DEBUG1("shoutcast metadata %.4080s", meta->data+1);
+	    DEBUG2("shoutcast metadata %.*s", 4080, meta->data+1);
             if (strncmp (meta->data+1, "StreamTitle=", 12) == 0)
             {
                 filter_shoutcast_metadata (source, source_mp3->build_metadata,

Modified: icecast/trunk/icecast/src/fserve.c
===================================================================
--- icecast/trunk/icecast/src/fserve.c	2012-06-07 15:45:44 UTC (rev 18354)
+++ icecast/trunk/icecast/src/fserve.c	2012-06-07 15:57:11 UTC (rev 18355)
@@ -412,7 +412,7 @@
     FILE *file;
 
     fullpath = util_get_path_from_normalised_uri (path);
-    INFO2 ("checking for file %s (%s)", path, fullpath);
+    INFO2 ("checking for file %H (%H)", path, fullpath);
 
     if (strcmp (util_get_extension (fullpath), "m3u") == 0)
         m3u_requested = 1;
@@ -429,7 +429,7 @@
         /* the m3u can be generated, but send an m3u file if available */
         if (m3u_requested == 0 && xslt_playlist_requested == NULL)
         {
-            WARN2 ("req for file \"%s\" %s", fullpath, strerror (errno));
+            WARN2 ("req for file \"%H\" %s", fullpath, strerror (errno));
             client_send_404 (httpclient, "The file you requested could not be found");
             free (fullpath);
             return -1;
@@ -500,7 +500,7 @@
     config = config_get_config();
     if (config->fileserve == 0)
     {
-        DEBUG1 ("on demand file \"%s\" refused", fullpath);
+        DEBUG1 ("on demand file \"%H\" refused", fullpath);
         client_send_404 (httpclient, "The file you requested could not be found");
         config_release_config();
         free (fullpath);
@@ -511,7 +511,7 @@
     if (S_ISREG (file_buf.st_mode) == 0)
     {
         client_send_404 (httpclient, "The file you requested could not be found");
-        WARN1 ("found requested file but there is no handler for it: %s", fullpath);
+        WARN1 ("found requested file but there is no handler for it: %H", fullpath);
         free (fullpath);
         return -1;
     }
@@ -519,7 +519,7 @@
     file = fopen (fullpath, "rb");
     if (file == NULL)
     {
-        WARN1 ("Problem accessing file \"%s\"", fullpath);
+        WARN1 ("Problem accessing file \"%H\"", fullpath);
         client_send_404 (httpclient, "File not readable");
         free (fullpath);
         return -1;



More information about the commits mailing list