From owner-cvs-all@FreeBSD.ORG Tue Sep 28 17:27:49 2010 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7394106566C; Tue, 28 Sep 2010 17:27:49 +0000 (UTC) (envelope-from garga@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A70478FC1A; Tue, 28 Sep 2010 17:27:49 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o8SHRntm065453; Tue, 28 Sep 2010 17:27:49 GMT (envelope-from garga@repoman.freebsd.org) Received: (from garga@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o8SHRnPZ065452; Tue, 28 Sep 2010 17:27:49 GMT (envelope-from garga) Message-Id: <201009281727.o8SHRnPZ065452@repoman.freebsd.org> From: Renato Botelho Date: Tue, 28 Sep 2010 17:27:49 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/security/clamav Makefile ports/security/clamav/files patch-libclamav__pdf.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Sep 2010 17:27:49 -0000 garga 2010-09-28 17:27:49 UTC FreeBSD ports repository Modified files: security/clamav Makefile Added files: security/clamav/files patch-libclamav__pdf.c Log: Fix a mmap() error scanning PDF files, as described on clamav's git repo commit log: off_t is 64-bit, size_t is still 32-bit and that causes unexpected integer promotion here: map_off = map->len - 2048 First the unsigned subtraction is performed, and then the unsigned (!) value is sign-extended to 64-bit. Hence a negative value becomes positive, which is wrong. Reported by: Franz Schwartau Obtained from: https://wwws.clamav.net/bugzilla/show_bug.cgi?id=2300 Revision Changes Path 1.153 +1 -1 ports/security/clamav/Makefile 1.1 +11 -0 ports/security/clamav/files/patch-libclamav__pdf.c (new)