Browse code

Handle ascii85encoded streams that a full of z's

git-svn: trunk@1601

Nigel Horne authored on 2005/06/02 16:57:31
Showing 2 changed files
... ...
@@ -1,3 +1,9 @@
1
+Thu Jun  2 08:56:39 BST 2005 (njh)
2
+----------------------------------
3
+  * libclamav/pdf.c:	Handle ascii85encoded streams that are full of z's.
4
+  				Reported by "Kevin Heneveld" <kevin at
5
+				northstar.k12.ak.us>
6
+
1 7
 Wed Jun  1 17:20:07 BST 2005 (njh)
2 8
 ----------------------------------
3 9
   * clamav-milter:	Support the new config parser
... ...
@@ -15,7 +15,7 @@
15 15
  *  along with this program; if not, write to the Free Software
16 16
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18
-static	char	const	rcsid[] = "$Id: pdf.c,v 1.23 2005/06/01 12:58:44 nigelhorne Exp $";
18
+static	char	const	rcsid[] = "$Id: pdf.c,v 1.24 2005/06/02 07:55:07 nigelhorne Exp $";
19 19
 
20 20
 #if HAVE_CONFIG_H
21 21
 #include "clamav-config.h"
... ...
@@ -255,7 +255,7 @@ cli_pdf(const char *dir, int desc)
255 255
 #endif
256 256
 
257 257
 		if(is_ascii85decode) {
258
-			unsigned char *tmpbuf = cli_malloc(streamlen * 2);
258
+			unsigned char *tmpbuf = cli_malloc(streamlen * 5);
259 259
 			int ret;
260 260
 
261 261
 			if(tmpbuf == NULL) {