From owner-svn-ports-head@freebsd.org Fri May 27 17:38:23 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 13D4FB4C5DD; Fri, 27 May 2016 17:38:23 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DF1AE1795; Fri, 27 May 2016 17:38:22 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4RHcMSd074798; Fri, 27 May 2016 17:38:22 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4RHcLvm074794; Fri, 27 May 2016 17:38:21 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201605271738.u4RHcLvm074794@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Fri, 27 May 2016 17:38:21 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r415951 - in head/security/i2pd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2016 17:38:23 -0000 Author: amdmi3 Date: Fri May 27 17:38:21 2016 New Revision: 415951 URL: https://svnweb.freebsd.org/changeset/ports/415951 Log: - Update to 2.7.0 Added: head/security/i2pd/files/patch-httpparser (contents, props changed) Deleted: head/security/i2pd/files/patch-build_CMakeLists.txt Modified: head/security/i2pd/Makefile head/security/i2pd/distinfo Modified: head/security/i2pd/Makefile ============================================================================== --- head/security/i2pd/Makefile Fri May 27 17:16:24 2016 (r415950) +++ head/security/i2pd/Makefile Fri May 27 17:38:21 2016 (r415951) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= i2pd -PORTVERSION= 2.3.0 +PORTVERSION= 2.7.0 CATEGORIES= security net-p2p MAINTAINER= amdmi3@FreeBSD.org @@ -11,10 +11,9 @@ COMMENT= C++ implementation of I2P clien LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -BROKEN_powerpc64= Does not build - LIB_DEPENDS= libboost_thread.so:devel/boost-libs +BROKEN_powerpc64= Does not build BROKEN_FreeBSD_9= does not build USE_GITHUB= yes Modified: head/security/i2pd/distinfo ============================================================================== --- head/security/i2pd/distinfo Fri May 27 17:16:24 2016 (r415950) +++ head/security/i2pd/distinfo Fri May 27 17:38:21 2016 (r415951) @@ -1,2 +1,3 @@ -SHA256 (PurpleI2P-i2pd-2.3.0_GH0.tar.gz) = 2397311cb10b04b843d136d9afe01b57f92bfaff72324cfa370f2d0fd74ae7dd -SIZE (PurpleI2P-i2pd-2.3.0_GH0.tar.gz) = 367391 +TIMESTAMP = 1464019672 +SHA256 (PurpleI2P-i2pd-2.7.0_GH0.tar.gz) = e4a3e192e424492962092f65a04fe12cac10f267ba2c99e2e62ca917741fba7e +SIZE (PurpleI2P-i2pd-2.7.0_GH0.tar.gz) = 410922 Added: head/security/i2pd/files/patch-httpparser ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/i2pd/files/patch-httpparser Fri May 27 17:38:21 2016 (r415951) @@ -0,0 +1,49 @@ +commit 43a90d7b98b1b317022f468bcf23027e039142fe +Author: hagen +Date: Thu May 26 00:00:00 2016 +0000 + + * HTTP.cpp : fix parse_header_line (#501) + +diff --git HTTP.cpp HTTP.cpp +index 83f1ac3..66dbc76 100644 +--- HTTP.cpp ++++ HTTP.cpp +@@ -45,9 +45,10 @@ namespace http { + bool parse_header_line(const std::string & line, std::map & headers) { + std::size_t pos = 0; + std::size_t len = 2; /* strlen(": ") */ ++ std::size_t max = line.length(); + if ((pos = line.find(": ", pos)) == std::string::npos) + return false; +- while (isspace(line.at(pos + len))) ++ while ((pos + len) < max && isspace(line.at(pos + len))) + len++; + std::string name = line.substr(0, pos); + std::string value = line.substr(pos + len); +diff --git tests/test-http-req.cpp tests/test-http-req.cpp +index 10ea621..d536262 100644 +--- tests/test-http-req.cpp ++++ tests/test-http-req.cpp +@@ -68,6 +68,7 @@ int main() { + buf = + "GET http://inr.i2p HTTP/1.1\r\n" + "Host: stats.i2p\r\n" ++ "Accept-Encoding: \r\n" + "Accept: */*\r\n" + "\r\n"; + len = strlen(buf); +@@ -76,9 +77,13 @@ int main() { + assert(req->method == "GET"); + assert(req->uri == "http://inr.i2p"); + assert(req->host == "stats.i2p"); +- assert(req->headers.size() == 2); ++ assert(req->headers.size() == 3); + assert(req->headers.count("Host") == 1); + assert(req->headers.count("Accept") == 1); ++ assert(req->headers.count("Accept-Encoding") == 1); ++ assert(req->headers["Host"] == "stats.i2p"); ++ assert(req->headers["Accept"] == "*/*"); ++ assert(req->headers["Accept-Encoding"] == ""); + delete req; + + return 0;