Browse code

Handle consecutive bse64decoding errors

git-svn: trunk@2541

Nigel Horne authored on 2006/12/07 18:19:52
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Thu Dec  7 09:18:58 GMT 2006 (njh)
2
+----------------------------------
3
+  * libclamav/message.c:	Handle consecutive errors in base64 decoding
4
+
1 5
 Wed Dec  6 14:53:39 GMT 2006 (njh)
2 6
 ----------------------------------
3 7
   * clamav-milter:	Improved handling of incorrect /etc/hosts files
... ...
@@ -16,7 +16,7 @@
16 16
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
  *  MA 02110-1301, USA.
18 18
  */
19
-static	char	const	rcsid[] = "$Id: message.c,v 1.191 2006/10/16 00:33:34 tkojm Exp $";
19
+static	char	const	rcsid[] = "$Id: message.c,v 1.192 2006/12/07 09:17:30 njh Exp $";
20 20
 
21 21
 #if HAVE_CONFIG_H
22 22
 #include "clamav-config.h"
... ...
@@ -2074,6 +2074,7 @@ sanitiseBase64(char *s)
2074 2074
 
2075 2075
 			for(p1 = s; p1[0] != '\0'; p1++)
2076 2076
 				p1[0] = p1[1];
2077
+			--s;
2077 2078
 		}
2078 2079
 }
2079 2080