Revert previous, this patch is already in 0.96.4.

This commit is contained in:
bouyer 2010-10-28 20:15:38 +00:00
parent 4543dee68c
commit 65314adeb0
3 changed files with 2 additions and 35 deletions

View file

@ -1,8 +1,7 @@
# $NetBSD: Makefile,v 1.107 2010/10/28 20:11:18 bouyer Exp $
# $NetBSD: Makefile,v 1.108 2010/10/28 20:15:38 bouyer Exp $
DISTNAME= clamav-${CLAMAV_VERSION}
PKGNAME= clamav-${CLAMAV_VERSION:S/-/./}
PKGREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=clamav/}

View file

@ -1,4 +1,4 @@
$NetBSD: distinfo,v 1.69 2010/10/28 20:11:18 bouyer Exp $
$NetBSD: distinfo,v 1.70 2010/10/28 20:15:38 bouyer Exp $
SHA1 (clamav-0.96.4.tar.gz) = ffff540b330f3d33c9ff9e8d551763b4e0028d72
RMD160 (clamav-0.96.4.tar.gz) = c12a7a09b2bef06b48596a159f3bcae5b12e61dc
@ -9,4 +9,3 @@ SHA1 (patch-ac) = af6c04bdeff91dec5e672f84fea6bd18d4e2fa1d
SHA1 (patch-ad) = 7d7ea5f8cda22dca1a399ee1219f1f072d8a3eed
SHA1 (patch-af) = a58e2c484b34bbfccb62d6fdf35b552a15dc9bd3
SHA1 (patch-ag) = cf4a0040a53c81402e8d15478407bc854af6fb30
SHA1 (patch-ah) = a4a6e666f892d65c90ac3e6fe219b3b5fb47e34d

View file

@ -1,31 +0,0 @@
$NetBSD: patch-ah,v 1.19 2010/10/28 20:11:18 bouyer Exp $
Fix "Unknown error code ERROR" on some PDF. Will be in 0.96.4:
http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff;h=e142504b07d7f81435f6ac99ec1eedf6c08f2188
Fix "LibClamAV Error: cli_pdf: mmap() failed (2)" on some PDF.
Will be in 0.96.4:
http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff;h=8f6bf9fc080aa54badcd7608f253821d5a8b1786
diff --git a/libclamav/pdf.c b/libclamav/pdf.c
index cd4d25a..e242135 100644 (file)
--- libclamav/pdf.c.orig 2010-09-20 15:24:46.000000000 +0200
+++ libclamav/pdf.c 2010-10-23 16:46:49.000000000 +0200
@@ -1024,7 +1024,7 @@ int cli_pdf(const char *dir, cli_ctx *ctx, off_t offset)
offset += pdfver - start;
/* find trailer and xref, don't fail if not found */
- map_off = map->len - 2048;
+ map_off = (off_t)map->len - 2048;
if (map_off < 0)
map_off = 0;
bytesleft = map->len - map_off;
@@ -1087,7 +1087,7 @@
rc = run_pdf_hooks(&pdf, PDF_PHASE_PRE, -1, -1);
if (rc) {
cli_dbgmsg("cli_pdf: returning %d\n", rc);
- return rc;
+ return rc == CL_BREAK ? CL_CLEAN : rc;
}
/* parse PDF and find obj offsets */
while ((rc = pdf_findobj(&pdf)) > 0) {