From owner-svn-ports-head@FreeBSD.ORG Mon Oct 20 14:19:07 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B24DB558; Mon, 20 Oct 2014 14:19:07 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::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 9E7B0EB3; Mon, 20 Oct 2014 14:19:07 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s9KEJ7Lw082452; Mon, 20 Oct 2014 14:19:07 GMT (envelope-from kwm@FreeBSD.org) Received: (from kwm@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s9KEJ6Gh082449; Mon, 20 Oct 2014 14:19:06 GMT (envelope-from kwm@FreeBSD.org) Message-Id: <201410201419.s9KEJ6Gh082449@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: kwm set sender to kwm@FreeBSD.org using -f From: Koop Mast Date: Mon, 20 Oct 2014 14:19:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r371269 - in head/textproc/libxml2: . 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.18-1 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: Mon, 20 Oct 2014 14:19:07 -0000 Author: kwm Date: Mon Oct 20 14:19:06 2014 New Revision: 371269 URL: https://svnweb.freebsd.org/changeset/ports/371269 QAT: https://qat.redports.org/buildarchive/r371269/ Log: patch-parser.c: Replace allready applied patch with new patch from upstream to unbreak the xmlcatalog command. patch-uri.c: Revert uri.c commit that causes the document chain to fail. Reported by: antoine@ Tested by: bapt@ MFH: 2014Q4 Added: head/textproc/libxml2/files/patch-uri.c (contents, props changed) Modified: head/textproc/libxml2/Makefile head/textproc/libxml2/files/patch-parser.c Modified: head/textproc/libxml2/Makefile ============================================================================== --- head/textproc/libxml2/Makefile Mon Oct 20 13:13:09 2014 (r371268) +++ head/textproc/libxml2/Makefile Mon Oct 20 14:19:06 2014 (r371269) @@ -4,7 +4,7 @@ PORTNAME= libxml2 PORTVERSION= 2.9.2 -PORTREVISION?= 0 +PORTREVISION?= 1 CATEGORIES?= textproc gnome MASTER_SITES= ftp://xmlsoft.org/libxml2/ \ http://xmlsoft.org/sources/ \ Modified: head/textproc/libxml2/files/patch-parser.c ============================================================================== --- head/textproc/libxml2/files/patch-parser.c Mon Oct 20 13:13:09 2014 (r371268) +++ head/textproc/libxml2/files/patch-parser.c Mon Oct 20 14:19:06 2014 (r371269) @@ -1,38 +1,31 @@ -CVE-2014-0191 +From 0e6659ec960734b0b01aad196d4bdb4a3800b493 Mon Sep 17 00:00:00 2001 +From: Lubomir Rintel +Date: Thu, 16 Oct 2014 19:10:59 +0200 +Subject: [PATCH] Revert "Missing initialization for the catalog module" -From 9cd1c3cfbd32655d60572c0a413e017260c854df Mon Sep 17 00:00:00 2001 -From: Daniel Veillard -Date: Tue, 22 Apr 2014 15:30:56 +0800 -Subject: Do not fetch external parameter entities +It's not correct to always load the default catalog. +https://bugzilla.redhat.com/show_bug.cgi?id=1153753 -Unless explicitely asked for when validating or replacing entities -with their value. Problem pointed out by Daniel Berrange +This reverts commit 054c716ea1bf001544127a4ab4f4346d1b9947e7. + +--- + parser.c | 3 --- + 1 file changed, 3 deletions(-) diff --git a/parser.c b/parser.c -index 9347ac9..c0dea05 100644 +index 1d93967..67c9dfd 100644 --- parser.c +++ parser.c -@@ -2598,6 +2598,20 @@ xmlParserHandlePEReference(xmlParserCtxtPtr ctxt) { - xmlCharEncoding enc; - - /* -+ * Note: external parsed entities will not be loaded, it is -+ * not required for a non-validating parser, unless the -+ * option of validating, or substituting entities were -+ * given. Doing so is far more secure as the parser will -+ * only process data coming from the document entity by -+ * default. -+ */ -+ if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) && -+ ((ctxt->options & XML_PARSE_NOENT) == 0) && -+ ((ctxt->options & XML_PARSE_DTDVALID) == 0) && -+ (ctxt->validate == 0)) -+ return; -+ -+ /* - * handle the extra spaces added before and after - * c.f. http://www.w3.org/TR/REC-xml#as-PE - * this is done independently. +@@ -14830,9 +14830,6 @@ xmlInitParser(void) { + #ifdef LIBXML_XPATH_ENABLED + xmlXPathInit(); + #endif +-#ifdef LIBXML_CATALOG_ENABLED +- xmlInitializeCatalog(); +-#endif + xmlParserInitialized = 1; + #ifdef LIBXML_THREAD_ENABLED + } -- -cgit v0.10.1 +1.9.3 Added: head/textproc/libxml2/files/patch-uri.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/libxml2/files/patch-uri.c Mon Oct 20 14:19:06 2014 (r371269) @@ -0,0 +1,25 @@ +Revert the following commit, it makes the freebsd doc chain fail. + +From 8eb55d782a2b9afacc7938694891cc6fad7b42a5 Mon Sep 17 00:00:00 2001 +From: Dennis Filder +Date: Fri, 13 Jun 2014 14:56:14 +0800 +Subject: xmlSaveUri() incorrectly recomposes URIs with rootless paths + +For https://bugzilla.gnome.org/show_bug.cgi?id=731063 + +xmlSaveUri() of libxml2 (snapshot 2014-05-31 and earlier) returns +bogus values when called with URIs that have rootless paths +(e.g. "urx:b:b" becomes "urx://b%3Ab" where "urx:b%3Ab" would be +correct) + +--- uri.c.orig 2014-10-03 13:28:06.000000000 +0200 ++++ uri.c 2014-10-20 14:22:57.677231158 +0200 +@@ -1198,6 +1198,8 @@ + if (temp == NULL) goto mem_error; + ret = temp; + } ++ ret[len++] = '/'; ++ ret[len++] = '/'; + } + if (uri->path != NULL) { + p = uri->path;