[xiph-cvs] r6533 - icecast/trunk/icecast/src

msmith at xiph.org msmith at xiph.org
Sun Apr 18 19:55:56 PDT 2004



Author: msmith
Date: 2004-04-18 22:55:56 -0400 (Sun, 18 Apr 2004)
New Revision: 6533

Modified:
   icecast/trunk/icecast/src/util.c
Log:
Fix overflow when base64 decoding invalid base64. 

<p>Modified: icecast/trunk/icecast/src/util.c
===================================================================
--- icecast/trunk/icecast/src/util.c	2004-04-19 02:29:52 UTC (rev 6532)
+++ icecast/trunk/icecast/src/util.c	2004-04-19 02:55:56 UTC (rev 6533)
@@ -450,6 +450,7 @@
         vals[3] = base64decode[*input++];
 
         if(vals[0] < 0 || vals[1] < 0 || vals[2] < -1 || vals[3] < -1) {
+            len -= 4;
             continue;
         }
 

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list