Ignore NL at start of FlateDecode section

git-svn: trunk@1559
remotes/push_mirror/metadata
Nigel Horne 20 years ago
parent 550ee7893a
commit bbc4f89032
  1. 4
      clamav-devel/ChangeLog
  2. 13
      clamav-devel/libclamav/pdf.c

@ -1,3 +1,7 @@
Fri May 20 09:16:36 BST 2005 (njh)
----------------------------------
* libclamav/pdf.c: Ignore leading NL in FlateDecode messages
Thu May 19 10:33:52 BST 2005 (njh)
----------------------------------
* clamav-milter: Used some of sendmail V8.13's features for sanity

@ -15,7 +15,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
static char const rcsid[] = "$Id: pdf.c,v 1.11 2005/05/19 10:17:39 nigelhorne Exp $";
static char const rcsid[] = "$Id: pdf.c,v 1.12 2005/05/20 08:14:34 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -144,8 +144,8 @@ cli_pdf(const char *dir, int desc)
if(fout < 0) {
cli_errmsg("cli_pdf: can't create temporary file %s: %s\n", fullname, strerror(errno));
munmap(buf, size);
return CL_ETMPFILE;
rc = CL_ETMPFILE;
break;
}
if(flatedecode) {
@ -155,6 +155,11 @@ cli_pdf(const char *dir, int desc)
cli_dbgmsg("cli_pdf: flatedecode %lu bytes\n", len);
if(strchr("\r\n", *t)) {
len--;
t++;
}
stream.zalloc = (alloc_func)Z_NULL;
stream.zfree = (free_func)Z_NULL;
stream.opaque = (void *)NULL;
@ -205,7 +210,7 @@ cli_pdf(const char *dir, int desc)
munmap(buf, size);
cli_dbgmsg("cli_pdf: returning CL_CLEAN\n");
cli_dbgmsg("cli_pdf: returning %d\n", rc);
return rc;
#endif
}

Loading…
Cancel
Save