From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Feb 25 13:40:11 2011 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 72089106566C for ; Fri, 25 Feb 2011 13:40:10 +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 0BB978FC0C for ; Fri, 25 Feb 2011 13:40:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1PDe98x068798 for ; Fri, 25 Feb 2011 13:40:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1PDe97B068797; Fri, 25 Feb 2011 13:40:09 GMT (envelope-from gnats) Resent-Date: Fri, 25 Feb 2011 13:40:09 GMT Resent-Message-Id: <201102251340.p1PDe97B068797@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, C-S Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 37630106564A for ; Fri, 25 Feb 2011 13:33:24 +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 26C4A8FC14 for ; Fri, 25 Feb 2011 13:33:24 +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 p1PDXN1q002301 for ; Fri, 25 Feb 2011 13:33:23 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id p1PDXNMN002293; Fri, 25 Feb 2011 13:33:23 GMT (envelope-from nobody) Message-Id: <201102251333.p1PDXNMN002293@red.freebsd.org> Date: Fri, 25 Feb 2011 13:33:23 GMT From: C-S To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/155027: [UPDATE] www/hiawatha 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, 25 Feb 2011 13:40:11 -0000 >Number: 155027 >Category: ports >Synopsis: [UPDATE] www/hiawatha >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Fri Feb 25 13:40:09 UTC 2011 >Closed-Date: >Last-Modified: >Originator: C-S >Release: >Organization: >Environment: >Description: There has been a serious bug found in the current version of hiawatha. The following patch fixes that: http://www.hiawatha-webserver.org/weblog/16 >How-To-Repeat: >Fix: Patch attached with submission follows: diff -ruN hiawatha.orig/Makefile hiawatha/Makefile --- hiawatha.orig/Makefile 2011-02-25 14:29:54.141307371 +0100 +++ hiawatha/Makefile 2011-02-25 14:30:02.242658743 +0100 @@ -7,6 +7,7 @@ PORTNAME= hiawatha PORTVERSION= 7.4 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES= http://www.hiawatha-webserver.org/files/ \ http://www.c-s.li/ports/ diff -ruN hiawatha.orig/files/patch-hiawatha.c hiawatha/files/patch-hiawatha.c --- hiawatha.orig/files/patch-hiawatha.c 1970-01-01 01:00:00.000000000 +0100 +++ hiawatha/files/patch-hiawatha.c 2011-02-25 14:30:02.188657316 +0100 @@ -0,0 +1,19 @@ +--- hiawatha.c.orig 2011-02-25 14:21:15.953502381 +0100 ++++ hiawatha.c 2011-02-25 14:24:44.166094143 +0100 +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + #include "alternative.h" + #include "mimetype.h" + #include "serverconfig.h" +@@ -418,7 +419,7 @@ + *strend = '\0'; + content_length = str2int(strstart); + *strend = '\r'; +- if (content_length < 0) { ++ if ((content_length < 0) || (INT_MAX - content_length - 2 <= header_length)) { + result = 400; + break; + } >Release-Note: >Audit-Trail: >Unformatted: