From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Apr 27 20:20:07 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6DAB1065673 for ; Fri, 27 Apr 2012 20:20:07 +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 986658FC12 for ; Fri, 27 Apr 2012 20:20:07 +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 q3RKK7Sq049019 for ; Fri, 27 Apr 2012 20:20:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q3RKK7bF049018; Fri, 27 Apr 2012 20:20:07 GMT (envelope-from gnats) Resent-Date: Fri, 27 Apr 2012 20:20:07 GMT Resent-Message-Id: <201204272020.q3RKK7bF049018@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, Ryan Steinmetz Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2BF531065676 for ; Fri, 27 Apr 2012 20:10:53 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 188868FC16 for ; Fri, 27 Apr 2012 20:10:53 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q3RKAq3G021783 for ; Fri, 27 Apr 2012 20:10:52 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q3RKAq7U021782; Fri, 27 Apr 2012 20:10:52 GMT (envelope-from nobody) Message-Id: <201204272010.q3RKAq7U021782@red.freebsd.org> Date: Fri, 27 Apr 2012 20:10:52 GMT From: Ryan Steinmetz To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/167375: [patch] devel/pcre to resolve buffer overflow X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Apr 2012 20:20:08 -0000 >Number: 167375 >Category: ports >Synopsis: [patch] devel/pcre to resolve buffer overflow >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Fri Apr 27 20:20:07 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Ryan Steinmetz >Release: 8.3-RELEASE >Organization: Rochester Institute of Technology >Environment: >Description: http://bugs.exim.org/show_bug.cgi?id=1236#c2 I've run into this issue with snort. The attached patch from the PCRE bug database should prevent this issue. - Bump PORTREVISION - Apply patch from upstream to resolve bug #1236 >How-To-Repeat: >Fix: Patch attached with submission follows: Index: Makefile =================================================================== RCS file: /home/ncvs/ports/devel/pcre/Makefile,v retrieving revision 1.76 diff -u -r1.76 Makefile --- Makefile 17 Feb 2012 13:18:12 -0000 1.76 +++ Makefile 27 Apr 2012 20:09:34 -0000 @@ -7,7 +7,7 @@ PORTNAME= pcre PORTVERSION= 8.30 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/programming/%SUBDIR%/ \ ftp://ftp.fu-berlin.de/unix/misc/%SUBDIR%/ \ Index: files/patch-pcre_exec.c =================================================================== RCS file: files/patch-pcre_exec.c diff -N files/patch-pcre_exec.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ files/patch-pcre_exec.c 27 Apr 2012 20:08:11 -0000 @@ -0,0 +1,11 @@ +--- ./pcre_exec.c.orig 2012-04-27 16:07:31.000000000 -0400 ++++ ./pcre_exec.c 2012-04-27 16:08:07.000000000 -0400 +@@ -6887,7 +6887,7 @@ + { + register int *iptr, *iend; + int resetcount = 2 + re->top_bracket * 2; +- if (resetcount > offsetcount) resetcount = ocount; ++ if (resetcount > offsetcount) resetcount = offsetcount; + iptr = offsets + md->end_offset_top; + iend = offsets + resetcount; + while (iptr < iend) *iptr++ = -1; >Release-Note: >Audit-Trail: >Unformatted: