From owner-freebsd-ports-bugs@FreeBSD.ORG Tue May 1 13:50:11 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 18C761065672 for ; Tue, 1 May 2012 13:50:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DD7D88FC0C for ; Tue, 1 May 2012 13:50:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q41DoAnF093028 for ; Tue, 1 May 2012 13:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q41DoAwl093027; Tue, 1 May 2012 13:50:10 GMT (envelope-from gnats) Resent-Date: Tue, 1 May 2012 13:50:10 GMT Resent-Message-Id: <201205011350.q41DoAwl093027@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Antoine Brodin Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 18137106566B for ; Tue, 1 May 2012 13:40:33 +0000 (UTC) (envelope-from antoine@peanut.dreadbsd.org) Received: from peanut.dreadbsd.org (unknown [IPv6:2a01:e35:243c:4320:20f:b5ff:fe63:d08e]) by mx1.freebsd.org (Postfix) with ESMTP id 6B88C8FC0A for ; Tue, 1 May 2012 13:40:31 +0000 (UTC) Received: from peanut.dreadbsd.org (localhost [127.0.0.1]) by peanut.dreadbsd.org (8.14.5/8.14.5) with ESMTP id q41DeUlv011727 for ; Tue, 1 May 2012 15:40:30 +0200 (CEST) (envelope-from antoine@peanut.dreadbsd.org) Received: (from antoine@localhost) by peanut.dreadbsd.org (8.14.5/8.14.5/Submit) id q41DePPl011726; Tue, 1 May 2012 15:40:25 +0200 (CEST) (envelope-from antoine) Message-Id: <201205011340.q41DePPl011726@peanut.dreadbsd.org> Date: Tue, 1 May 2012 15:40:25 +0200 (CEST) From: Antoine Brodin To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/167484: [maintainer update] update devel/py-pefile to version 1.2.10-114 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Antoine Brodin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 May 2012 13:50:11 -0000 >Number: 167484 >Category: ports >Synopsis: [maintainer update] update devel/py-pefile to version 1.2.10-114 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Tue May 01 13:50:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Antoine Brodin >Release: FreeBSD 10.0-CURRENT i386 >Organization: none >Environment: System: FreeBSD barton.dreadbsd.org. 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sat Feb 11 18:22:15 CET 2012 root@barton.dreadbsd.org.:/usr/obj/usr/src/sys/MYGENERIC i386 >Description: Changelog: Version: 1.2.10-114 Added sanity checks for invalid relocation information. VirtualAddress and SizeOfBlock are checked against a wide boundary that should never surpass (SizeOfImage) Merged the patch from Issue 32 (and fixed some problems with it) regarding mmap files left open on Python 2.5.x Version: 1.2.10-111 Fixed Issue 10 and Issue 29 (related) by also parsing strings for stringfileinfo_struct.Type=0 in addition of Type=1 Fixed Issue 26 as suggested by catching early parsing errors with a try in the PE constructor Fixed Issue 30 parsing 64-bit PE32+ imports As pointed out by Pedram Amini removed a warning about WRITE and EXECUTE flags set for a section if the section name is 'PAGE' and the PE is a driver. In drivers such combination is legitimate 10 and Issue 29 to also handle the VarFileInfo structure Version: 1.2.10-107 Fixed Issue 27 Enhanced the processing of files with uncommon combinations of FileAligment and PointerToRawData values As suggested in Issue 26 a close() method was added that closes the mmap of the file Added a check for zero-length files. A PEFormatError is now raised on those ( Issue 25 ) Fixed a couple of small bugs in the parsing of resources The parsing of the resources' version strings had a small flaw where one character outside the range was not caught Version: 1.2.10-102 Added a (high) hard-coded limit to the number of directory entries to process. Some specially crafted directories could lead to long processing times Version: 1.2.10-100 Added additional check in the resources string parser to avoid some crashes Added Ange Albertini's patch to provide more helpful error messages when pefile meets NE/LE/LX files and ZM (as opposed to MZ) files. The PEFormatError() exception raised will inform about the type of file Version: 1.2.10-96 Fixed Issue 12 , there was a bug calculating the offset to the VS_VERSIONINFO structure that would manifest in some files Added a method to peutils to scan for PEiD signatures in user-provided raw data as opposed to only allowing pefile.PE() instances, it comes handy when feeding data from other tools like IDA Improved handling of cases of unorthodox, although valid, FileAlignment and SectionAlignment values and combinations of those. It turns out that they have to be in certain relation for some value ranges Fixed Issue 24 >How-To-Repeat: >Fix: --- py-pefile.diff begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/devel/py-pefile/Makefile,v retrieving revision 1.15 diff -u -r1.15 Makefile --- Makefile 5 Feb 2011 10:51:57 -0000 1.15 +++ Makefile 1 May 2012 13:24:13 -0000 @@ -6,7 +6,7 @@ # PORTNAME= pefile -DISTVERSION= 1.2.10-93 +DISTVERSION= 1.2.10-114 CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} Index: distinfo =================================================================== RCS file: /home/ncvs/ports/devel/py-pefile/distinfo,v retrieving revision 1.14 diff -u -r1.14 distinfo --- distinfo 5 Feb 2011 10:51:57 -0000 1.14 +++ distinfo 1 May 2012 13:24:33 -0000 @@ -1,2 +1,2 @@ -SHA256 (pefile-1.2.10-93.tar.gz) = a8a1b8b03ec2ce8c2ffcd916f3ae4f20586e273b959adbf72a24b5013b397e5a -SIZE (pefile-1.2.10-93.tar.gz) = 47049 +SHA256 (pefile-1.2.10-114.tar.gz) = 290d13671a7ec2be0862489ce1eb58be0b6112cbd707516f8fb4f271836d758d +SIZE (pefile-1.2.10-114.tar.gz) = 49128 --- py-pefile.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: