From nobody@FreeBSD.org  Mon Apr 28 00:00:56 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 8B5BD106566C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Apr 2008 00:00:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 72EF78FC0C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Apr 2008 00:00:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3S00Med085047
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 28 Apr 2008 00:00:22 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m3S00MTb085046;
	Mon, 28 Apr 2008 00:00:22 GMT
	(envelope-from nobody)
Message-Id: <200804280000.m3S00MTb085046@www.freebsd.org>
Date: Mon, 28 Apr 2008 00:00:22 GMT
From: Nick Barkas <snb@threerings.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Integer signedness bug in zlib module of lang/python23 and lang/python24
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         123153
>Category:       ports
>Synopsis:       Integer signedness bug in zlib module of lang/python23 and lang/python24
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    miwi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 28 00:10:00 UTC 2008
>Closed-Date:    Mon Apr 28 07:40:55 UTC 2008
>Last-Modified:  Mon Apr 28 07:50:01 UTC 2008
>Originator:     Nick Barkas
>Release:        7.0-RELEASE
>Organization:
Three Rings Design
>Environment:
FreeBSD maguro.moduli.net 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
Python 2.3 and 2.4 suffer from the same integer signedness bug in the zlib module as was fixed recently in the port python25-2.5.2_2. See http://www.vuxml.org/freebsd/ec41c3e2-129c-11dd-bab7-0016179b2dd5.html
>How-To-Repeat:
Run either of the scipts python-2.5.2-zlib-unflush-misallocation.py or python-2.5.2-zlib-unflush-signedness.py attached to the bug reported at http://bugs.python.org/issue2586. Unpatched python 2.3 or 2.4 will crash, just as unpatched python 2.5 will.
>Fix:
Add the patch currently in lang/python25/files/patch-Modules-zlibmodule.c to lang/python24/files and lang/python23/files. It would also be good to update security/vuxml/vuln.xml to note that the vulnerability also affects python23 and python24 packages with version and port revision numbers before this patch is added.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->python 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Apr 28 00:10:08 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123153 
Responsible-Changed-From-To: python->miwi 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Mon Apr 28 07:09:02 UTC 2008 
Responsible-Changed-Why:  
my part. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123153 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/123153: commit references a PR
Date: Mon, 28 Apr 2008 07:34:43 +0000 (UTC)

 miwi        2008-04-28 07:34:39 UTC
 
   FreeBSD ports repository
 
   Modified files:
     security/vuxml       vuln.xml 
   Log:
   - Update last python entry python23 and python24 also affected
   
   PR:             123153
   Submitted by:   Nick Barkas <snb@threerings.net>
   
   Revision  Changes    Path
   1.1612    +11 -2     ports/security/vuxml/vuln.xml
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: miwi 
State-Changed-When: Mon Apr 28 07:40:54 UTC 2008 
State-Changed-Why:  
Nick Thanks! Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=123153 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/123153: commit references a PR
Date: Mon, 28 Apr 2008 07:40:04 +0000 (UTC)

 miwi        2008-04-28 07:39:59 UTC
 
   FreeBSD ports repository
 
   Modified files:
     lang/python23        Makefile 
     lang/python24        Makefile 
   Added files:
     lang/python23/files  patch-Lib-test-test_zlib.py 
                          patch-Modules-zlibmodule.c 
     lang/python24/files  patch-Lib-test-test_zlib.py 
                          patch-Modules-zlibmodule.c 
   Log:
   - Fix zlib crash from zlib.decompressobj().flush(val)
     when val was not positive. It tried to allocate negative
     or zero memory.  That fails.
   - Bump PORTREVISION
   
   PR:             123153
   Submitted by:   Nick Barkas <snb@threerings.net>
   Security:       http://www.vuxml.org/freebsd/ec41c3e2-129c-11dd-bab7-0016179b2dd5.html
   
   Revision  Changes    Path
   1.152     +1 -0      ports/lang/python23/Makefile
   1.1       +14 -0     ports/lang/python23/files/patch-Lib-test-test_zlib.py (new)
   1.1       +13 -0     ports/lang/python23/files/patch-Modules-zlibmodule.c (new)
   1.162     +1 -0      ports/lang/python24/Makefile
   1.1       +14 -0     ports/lang/python24/files/patch-Lib-test-test_zlib.py (new)
   1.1       +13 -0     ports/lang/python24/files/patch-Modules-zlibmodule.c (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
