nokogiri 1.6.6.2 → 1.6.6.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of nokogiri might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5d4232ee6799a936a47ad718e159c5e51f2fcf7
4
- data.tar.gz: 380f57a7df0e62cab489518995387a25689b9c48
3
+ metadata.gz: d593454c896e0d83e7f02de14000af6c3be5cf97
4
+ data.tar.gz: 65bf729b1ec5e2010e186d975e9194f27ab93773
5
5
  SHA512:
6
- metadata.gz: 209b570be0cf7c727bbda1032a3c77861abc1b10f15dcc4760e1b55c11f610a2b8593f7c1088f11249f0fba931a8e49c9cb346f08316ac01e5bf1dfe1f24703d
7
- data.tar.gz: 513f76248d60a53c88eeaeb25bfcf56806fdfefca884687b8f59f1d992c5b796b9928981b00e16c3fe14d5a96e5bbaab58a3ada29de8046e4ee502d03d45bdbb
6
+ metadata.gz: b84013ed86dd99009f36012b11568e72dc362381ed5a69cd3132f710ac4c5ecaf2ed1b82e48477faa69b2ef861d83ded49fdd86ddab51a0d9d0a6f8b8c38c49a
7
+ data.tar.gz: ee971e5703a0f8ef73c16c9304e68bcf9a5a0b4deb123b5287055857a0635b93a119bc659fb72c57d8f08a9c08d0261fd5443a81c51f40d1a71da30d7e758cce
@@ -1,3 +1,18 @@
1
+ === 1.6.6.3 / 2015-11-16
2
+
3
+ This version pulls in several upstream patches to the vendored libxml2 and libxslt to address:
4
+
5
+ * CVE-2015-1819
6
+ * CVE-2015-7941_1
7
+ * CVE-2015-7941_2
8
+ * CVE-2015-7942
9
+ * CVE-2015-7942-2
10
+ * CVE-2015-8035
11
+ * CVE-2015-7995
12
+
13
+ See #1374 for details.
14
+
15
+
1
16
  === 1.6.6.2 / 2015年01月23日
2
17
 
3
18
  ==== Bug fixes
@@ -1,3 +1,18 @@
1
+ === 1.6.6.3 / 2015-11-16
2
+
3
+ This version pulls in several upstream patches to the vendored libxml2 and libxslt to address:
4
+
5
+ * CVE-2015-1819
6
+ * CVE-2015-7941_1
7
+ * CVE-2015-7941_2
8
+ * CVE-2015-7942
9
+ * CVE-2015-7942-2
10
+ * CVE-2015-8035
11
+ * CVE-2015-7995
12
+
13
+ See #1374 for details.
14
+
15
+
1
16
  === 1.6.6.2 / 2015-01-23
2
17
 
3
18
  ==== Bug fixes
@@ -244,6 +244,12 @@ lib/xercesImpl.jar
244
244
  lib/xsd/xmlparser/nokogiri.rb
245
245
  ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch
246
246
  ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
247
+ ports/patches/libxml2/0003-Stop-parsing-on-entities-boundaries-errors.patch
248
+ ports/patches/libxml2/0004-Cleanup-conditional-section-error-handling.patch
249
+ ports/patches/libxml2/0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch
250
+ ports/patches/libxml2/0006-Another-variation-of-overflow-in-Conditional-section.patch
251
+ ports/patches/libxml2/0007-Fix-an-error-in-previous-Conditional-section-patch.patch
252
+ ports/patches/libxml2/0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch
247
253
  ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch
248
254
  ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
249
255
  ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch
@@ -256,6 +262,7 @@ ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.
256
262
  ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
257
263
  ports/patches/libxslt/0014-Fix-for-bug-436589.patch
258
264
  ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch
265
+ ports/patches/libxslt/0016-Fix-for-type-confusion-in-preprocessing-attributes.patch
259
266
  ports/patches/sort-patches-by-date
260
267
  suppressions/README.txt
261
268
  suppressions/nokogiri_ree-1.8.7.358.supp
@@ -1,6 +1,6 @@
1
1
  module Nokogiri
2
2
  # The version of Nokogiri you are using
3
- VERSION = '1.6.6.2'
3
+ VERSION = '1.6.6.3'
4
4
 
5
5
  class VersionInfo # :nodoc:
6
6
  def jruby?
@@ -0,0 +1,32 @@
1
+ From 99d99063ae5c4b6bd2b58324273401f3ce42a550 Mon Sep 17 00:00:00 2001
2
+ From: Daniel Veillard <veillard@redhat.com>
3
+ Date: Mon, 23 Feb 2015 11:17:35 +0800
4
+ Subject: [PATCH 3/8] Stop parsing on entities boundaries errors
5
+
6
+ For https://bugzilla.gnome.org/show_bug.cgi?id=744980
7
+
8
+ There are times, like on unterminated entities that it's preferable to
9
+ stop parsing, even if that means less error reporting. Entities are
10
+ feeding the parser on further processing, and if they are ill defined
11
+ then it's possible to get the parser to bug. Also do the same on
12
+ Conditional Sections if the input is broken, as the structure of
13
+ the document can't be guessed.
14
+ ---
15
+ parser.c | 1 +
16
+ 1 file changed, 1 insertion(+)
17
+
18
+ diff --git a/parser.c b/parser.c
19
+ index 1d93967..7b0380c 100644
20
+ --- a/parser.c
21
+ +++ b/parser.c
22
+ @@ -5658,6 +5658,7 @@ xmlParseEntityDecl(xmlParserCtxtPtr ctxt) {
23
+ if (RAW != '>') {
24
+ xmlFatalErrMsgStr(ctxt, XML_ERR_ENTITY_NOT_FINISHED,
25
+ "xmlParseEntityDecl: entity %s not terminated\n", name);
26
+ + xmlStopParser(ctxt);
27
+ } else {
28
+ if (input != ctxt->input) {
29
+ xmlFatalErrMsg(ctxt, XML_ERR_ENTITY_BOUNDARY,
30
+ --
31
+ 2.5.0
32
+
@@ -0,0 +1,49 @@
1
+ From c8d3950c5532c2e3d954bacdb8c479bb9fdacf89 Mon Sep 17 00:00:00 2001
2
+ From: Daniel Veillard <veillard@redhat.com>
3
+ Date: Mon, 23 Feb 2015 11:29:20 +0800
4
+ Subject: [PATCH 4/8] Cleanup conditional section error handling
5
+
6
+ For https://bugzilla.gnome.org/show_bug.cgi?id=744980
7
+
8
+ The error handling of Conditional Section also need to be
9
+ straightened as the structure of the document can't be
10
+ guessed on a failure there and it's better to stop parsing
11
+ as further errors are likely to be irrelevant.
12
+ ---
13
+ parser.c | 6 ++++++
14
+ 1 file changed, 6 insertions(+)
15
+
16
+ diff --git a/parser.c b/parser.c
17
+ index 7b0380c..1e714e7 100644
18
+ --- a/parser.c
19
+ +++ b/parser.c
20
+ @@ -6770,6 +6770,8 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
21
+ SKIP_BLANKS;
22
+ if (RAW != '[') {
23
+ xmlFatalErr(ctxt, XML_ERR_CONDSEC_INVALID, NULL);
24
+ + xmlStopParser(ctxt);
25
+ + return;
26
+ } else {
27
+ if (ctxt->input->id != id) {
28
+ xmlValidityError(ctxt, XML_ERR_ENTITY_BOUNDARY,
29
+ @@ -6830,6 +6832,8 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
30
+ SKIP_BLANKS;
31
+ if (RAW != '[') {
32
+ xmlFatalErr(ctxt, XML_ERR_CONDSEC_INVALID, NULL);
33
+ + xmlStopParser(ctxt);
34
+ + return;
35
+ } else {
36
+ if (ctxt->input->id != id) {
37
+ xmlValidityError(ctxt, XML_ERR_ENTITY_BOUNDARY,
38
+ @@ -6885,6 +6889,8 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
39
+
40
+ } else {
41
+ xmlFatalErr(ctxt, XML_ERR_CONDSEC_INVALID_KEYWORD, NULL);
42
+ + xmlStopParser(ctxt);
43
+ + return;
44
+ }
45
+
46
+ if (RAW == 0)
47
+ --
48
+ 2.5.0
49
+
@@ -0,0 +1,177 @@
1
+ From 12f31177b0d9be57ed8fb3467b501606fb145286 Mon Sep 17 00:00:00 2001
2
+ From: Daniel Veillard <veillard@redhat.com>
3
+ Date: Tue, 14 Apr 2015 17:41:48 +0800
4
+ Subject: [PATCH 5/8] CVE-2015-1819 Enforce the reader to run in constant
5
+ memory
6
+
7
+ One of the operation on the reader could resolve entities
8
+ leading to the classic expansion issue. Make sure the
9
+ buffer used for xmlreader operation is bounded.
10
+ Introduce a new allocation type for the buffers for this effect.
11
+ ---
12
+ buf.c | 43 ++++++++++++++++++++++++++++++++++++++++++-
13
+ include/libxml/tree.h | 3 ++-
14
+ xmlreader.c | 20 +++++++++++++++++++-
15
+ 3 files changed, 63 insertions(+), 3 deletions(-)
16
+
17
+ diff --git a/buf.c b/buf.c
18
+ index 6efc7b6..07922ff 100644
19
+ --- a/buf.c
20
+ +++ b/buf.c
21
+ @@ -27,6 +27,7 @@
22
+ #include <libxml/tree.h>
23
+ #include <libxml/globals.h>
24
+ #include <libxml/tree.h>
25
+ +#include <libxml/parserInternals.h> /* for XML_MAX_TEXT_LENGTH */
26
+ #include "buf.h"
27
+
28
+ #define WITH_BUFFER_COMPAT
29
+ @@ -299,7 +300,8 @@ xmlBufSetAllocationScheme(xmlBufPtr buf,
30
+ if ((scheme == XML_BUFFER_ALLOC_DOUBLEIT) ||
31
+ (scheme == XML_BUFFER_ALLOC_EXACT) ||
32
+ (scheme == XML_BUFFER_ALLOC_HYBRID) ||
33
+ - (scheme == XML_BUFFER_ALLOC_IMMUTABLE)) {
34
+ + (scheme == XML_BUFFER_ALLOC_IMMUTABLE) ||
35
+ + (scheme == XML_BUFFER_ALLOC_BOUNDED)) {
36
+ buf->alloc = scheme;
37
+ if (buf->buffer)
38
+ buf->buffer->alloc = scheme;
39
+ @@ -458,6 +460,18 @@ xmlBufGrowInternal(xmlBufPtr buf, size_t len) {
40
+ size = buf->use + len + 100;
41
+ #endif
42
+
43
+ + if (buf->alloc == XML_BUFFER_ALLOC_BOUNDED) {
44
+ + /*
45
+ + * Used to provide parsing limits
46
+ + */
47
+ + if ((buf->use + len >= XML_MAX_TEXT_LENGTH) ||
48
+ + (buf->size >= XML_MAX_TEXT_LENGTH)) {
49
+ + xmlBufMemoryError(buf, "buffer error: text too long\n");
50
+ + return(0);
51
+ + }
52
+ + if (size >= XML_MAX_TEXT_LENGTH)
53
+ + size = XML_MAX_TEXT_LENGTH;
54
+ + }
55
+ if ((buf->alloc == XML_BUFFER_ALLOC_IO) && (buf->contentIO != NULL)) {
56
+ size_t start_buf = buf->content - buf->contentIO;
57
+
58
+ @@ -739,6 +753,15 @@ xmlBufResize(xmlBufPtr buf, size_t size)
59
+ CHECK_COMPAT(buf)
60
+
61
+ if (buf->alloc == XML_BUFFER_ALLOC_IMMUTABLE) return(0);
62
+ + if (buf->alloc == XML_BUFFER_ALLOC_BOUNDED) {
63
+ + /*
64
+ + * Used to provide parsing limits
65
+ + */
66
+ + if (size >= XML_MAX_TEXT_LENGTH) {
67
+ + xmlBufMemoryError(buf, "buffer error: text too long\n");
68
+ + return(0);
69
+ + }
70
+ + }
71
+
72
+ /* Don't resize if we don't have to */
73
+ if (size < buf->size)
74
+ @@ -867,6 +890,15 @@ xmlBufAdd(xmlBufPtr buf, const xmlChar *str, int len) {
75
+
76
+ needSize = buf->use + len + 2;
77
+ if (needSize > buf->size){
78
+ + if (buf->alloc == XML_BUFFER_ALLOC_BOUNDED) {
79
+ + /*
80
+ + * Used to provide parsing limits
81
+ + */
82
+ + if (needSize >= XML_MAX_TEXT_LENGTH) {
83
+ + xmlBufMemoryError(buf, "buffer error: text too long\n");
84
+ + return(-1);
85
+ + }
86
+ + }
87
+ if (!xmlBufResize(buf, needSize)){
88
+ xmlBufMemoryError(buf, "growing buffer");
89
+ return XML_ERR_NO_MEMORY;
90
+ @@ -938,6 +970,15 @@ xmlBufAddHead(xmlBufPtr buf, const xmlChar *str, int len) {
91
+ }
92
+ needSize = buf->use + len + 2;
93
+ if (needSize > buf->size){
94
+ + if (buf->alloc == XML_BUFFER_ALLOC_BOUNDED) {
95
+ + /*
96
+ + * Used to provide parsing limits
97
+ + */
98
+ + if (needSize >= XML_MAX_TEXT_LENGTH) {
99
+ + xmlBufMemoryError(buf, "buffer error: text too long\n");
100
+ + return(-1);
101
+ + }
102
+ + }
103
+ if (!xmlBufResize(buf, needSize)){
104
+ xmlBufMemoryError(buf, "growing buffer");
105
+ return XML_ERR_NO_MEMORY;
106
+ diff --git a/include/libxml/tree.h b/include/libxml/tree.h
107
+ index 2f90717..4a9b3bc 100644
108
+ --- a/include/libxml/tree.h
109
+ +++ b/include/libxml/tree.h
110
+ @@ -76,7 +76,8 @@ typedef enum {
111
+ XML_BUFFER_ALLOC_EXACT, /* grow only to the minimal size */
112
+ XML_BUFFER_ALLOC_IMMUTABLE, /* immutable buffer */
113
+ XML_BUFFER_ALLOC_IO, /* special allocation scheme used for I/O */
114
+ - XML_BUFFER_ALLOC_HYBRID /* exact up to a threshold, and doubleit thereafter */
115
+ + XML_BUFFER_ALLOC_HYBRID, /* exact up to a threshold, and doubleit thereafter */
116
+ + XML_BUFFER_ALLOC_BOUNDED /* limit the upper size of the buffer */
117
+ } xmlBufferAllocationScheme;
118
+
119
+ /**
120
+ diff --git a/xmlreader.c b/xmlreader.c
121
+ index f19e123..471e7e2 100644
122
+ --- a/xmlreader.c
123
+ +++ b/xmlreader.c
124
+ @@ -2091,6 +2091,9 @@ xmlNewTextReader(xmlParserInputBufferPtr input, const char *URI) {
125
+ "xmlNewTextReader : malloc failed\n");
126
+ return(NULL);
127
+ }
128
+ + /* no operation on a reader should require a huge buffer */
129
+ + xmlBufSetAllocationScheme(ret->buffer,
130
+ + XML_BUFFER_ALLOC_BOUNDED);
131
+ ret->sax = (xmlSAXHandler *) xmlMalloc(sizeof(xmlSAXHandler));
132
+ if (ret->sax == NULL) {
133
+ xmlBufFree(ret->buffer);
134
+ @@ -3616,6 +3619,7 @@ xmlTextReaderConstValue(xmlTextReaderPtr reader) {
135
+ return(((xmlNsPtr) node)->href);
136
+ case XML_ATTRIBUTE_NODE:{
137
+ xmlAttrPtr attr = (xmlAttrPtr) node;
138
+ + const xmlChar *ret;
139
+
140
+ if ((attr->children != NULL) &&
141
+ (attr->children->type == XML_TEXT_NODE) &&
142
+ @@ -3629,10 +3633,21 @@ xmlTextReaderConstValue(xmlTextReaderPtr reader) {
143
+ "xmlTextReaderSetup : malloc failed\n");
144
+ return (NULL);
145
+ }
146
+ + xmlBufSetAllocationScheme(reader->buffer,
147
+ + XML_BUFFER_ALLOC_BOUNDED);
148
+ } else
149
+ xmlBufEmpty(reader->buffer);
150
+ xmlBufGetNodeContent(reader->buffer, node);
151
+ - return(xmlBufContent(reader->buffer));
152
+ + ret = xmlBufContent(reader->buffer);
153
+ + if (ret == NULL) {
154
+ + /* error on the buffer best to reallocate */
155
+ + xmlBufFree(reader->buffer);
156
+ + reader->buffer = xmlBufCreateSize(100);
157
+ + xmlBufSetAllocationScheme(reader->buffer,
158
+ + XML_BUFFER_ALLOC_BOUNDED);
159
+ + ret = BAD_CAST "";
160
+ + }
161
+ + return(ret);
162
+ }
163
+ break;
164
+ }
165
+ @@ -5131,6 +5146,9 @@ xmlTextReaderSetup(xmlTextReaderPtr reader,
166
+ "xmlTextReaderSetup : malloc failed\n");
167
+ return (-1);
168
+ }
169
+ + /* no operation on a reader should require a huge buffer */
170
+ + xmlBufSetAllocationScheme(reader->buffer,
171
+ + XML_BUFFER_ALLOC_BOUNDED);
172
+ if (reader->sax == NULL)
173
+ reader->sax = (xmlSAXHandler *) xmlMalloc(sizeof(xmlSAXHandler));
174
+ if (reader->sax == NULL) {
175
+ --
176
+ 2.5.0
177
+
@@ -0,0 +1,32 @@
1
+ From 9ee30e69f63379b3caf451aa7ae4058a1fa2fa73 Mon Sep 17 00:00:00 2001
2
+ From: Daniel Veillard <veillard@redhat.com>
3
+ Date: Fri, 23 Oct 2015 19:02:28 +0800
4
+ Subject: [PATCH 6/8] Another variation of overflow in Conditional sections
5
+
6
+ Which happen after the previous fix to
7
+ https://bugzilla.gnome.org/show_bug.cgi?id=756456
8
+
9
+ But stopping the parser and exiting we didn't pop the intermediary entities
10
+ and doing the SKIP there applies on an input which may be too small
11
+ ---
12
+ parser.c | 4 +++-
13
+ 1 file changed, 3 insertions(+), 1 deletion(-)
14
+
15
+ diff --git a/parser.c b/parser.c
16
+ index 1e714e7..0b8d633 100644
17
+ --- a/parser.c
18
+ +++ b/parser.c
19
+ @@ -6904,7 +6904,9 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
20
+ "All markup of the conditional section is not in the same entity\n",
21
+ NULL, NULL);
22
+ }
23
+ - SKIP(3);
24
+ + if ((ctxt-> instate != XML_PARSER_EOF) &&
25
+ + ((ctxt->input->cur + 3) < ctxt->input->end))
26
+ + SKIP(3);
27
+ }
28
+ }
29
+
30
+ --
31
+ 2.5.0
32
+
@@ -0,0 +1,28 @@
1
+ From 587f0e0133f51f3e09d1166cc0f6b24b50ddb357 Mon Sep 17 00:00:00 2001
2
+ From: Daniel Veillard <veillard@redhat.com>
3
+ Date: Tue, 27 Oct 2015 10:53:44 +0800
4
+ Subject: [PATCH 7/8] Fix an error in previous Conditional section patch
5
+
6
+ an off by one mistake in the change, led to error on correct
7
+ document where the end of the included entity was exactly
8
+ the end of the conditional section, leading to regtest failure
9
+ ---
10
+ parser.c | 2 +-
11
+ 1 file changed, 1 insertion(+), 1 deletion(-)
12
+
13
+ diff --git a/parser.c b/parser.c
14
+ index 0b8d633..0650d2a 100644
15
+ --- a/parser.c
16
+ +++ b/parser.c
17
+ @@ -6905,7 +6905,7 @@ xmlParseConditionalSections(xmlParserCtxtPtr ctxt) {
18
+ NULL, NULL);
19
+ }
20
+ if ((ctxt-> instate != XML_PARSER_EOF) &&
21
+ - ((ctxt->input->cur + 3) < ctxt->input->end))
22
+ + ((ctxt->input->cur + 3) <= ctxt->input->end))
23
+ SKIP(3);
24
+ }
25
+ }
26
+ --
27
+ 2.5.0
28
+
@@ -0,0 +1,31 @@
1
+ From 8f905eeb2aa553ee50194ed38db7186653ec6e1c Mon Sep 17 00:00:00 2001
2
+ From: Daniel Veillard <veillard@redhat.com>
3
+ Date: Tue, 3 Nov 2015 15:31:25 +0800
4
+ Subject: [PATCH 8/8] CVE-2015-8035 Fix XZ compression support loop
5
+
6
+ For https://bugzilla.gnome.org/show_bug.cgi?id=757466
7
+ DoS when parsing specially crafted XML document if XZ support
8
+ is compiled in (which wasn't the case for 2.9.2 and master since
9
+ Nov 2013, fixed in next commit !)
10
+ ---
11
+ xzlib.c | 4 ++++
12
+ 1 file changed, 4 insertions(+)
13
+
14
+ diff --git a/xzlib.c b/xzlib.c
15
+ index 0dcb9f4..1fab546 100644
16
+ --- a/xzlib.c
17
+ +++ b/xzlib.c
18
+ @@ -581,6 +581,10 @@ xz_decomp(xz_statep state)
19
+ xz_error(state, LZMA_DATA_ERROR, "compressed data error");
20
+ return -1;
21
+ }
22
+ + if (ret == LZMA_PROG_ERROR) {
23
+ + xz_error(state, LZMA_PROG_ERROR, "compression error");
24
+ + return -1;
25
+ + }
26
+ } while (strm->avail_out && ret != LZMA_STREAM_END);
27
+
28
+ /* update available output and crc check value */
29
+ --
30
+ 2.5.0
31
+
@@ -0,0 +1,29 @@
1
+ From 5865b9545891a38608374ff6458663e483a0dfb5 Mon Sep 17 00:00:00 2001
2
+ From: Daniel Veillard <veillard@redhat.com>
3
+ Date: Thu, 29 Oct 2015 19:33:23 +0800
4
+ Subject: [PATCH] Fix for type confusion in preprocessing attributes
5
+
6
+ CVE-2015-7995 http://www.openwall.com/lists/oss-security/2015/10/27/10
7
+ We need to check that the parent node is an element before dereferencing
8
+ its namespace
9
+ ---
10
+ libxslt/preproc.c | 3 ++-
11
+ 1 file changed, 2 insertions(+), 1 deletion(-)
12
+
13
+ diff --git a/libxslt/preproc.c b/libxslt/preproc.c
14
+ index 4ef3f63..dac6acb 100644
15
+ --- a/libxslt/preproc.c
16
+ +++ b/libxslt/preproc.c
17
+ @@ -2245,7 +2245,8 @@ xsltStylePreCompute(xsltStylesheetPtr style, xmlNodePtr inst) {
18
+ } else if (IS_XSLT_NAME(inst, "attribute")) {
19
+ xmlNodePtr parent = inst->parent;
20
+
21
+ - if ((parent == NULL) || (parent->ns == NULL) ||
22
+ + if ((parent == NULL) ||
23
+ + (parent->type != XML_ELEMENT_NODE) || (parent->ns == NULL) ||
24
+ ((parent->ns != inst->ns) &&
25
+ (!xmlStrEqual(parent->ns->href, inst->ns->href))) ||
26
+ (!xmlStrEqual(parent->name, BAD_CAST "attribute-set"))) {
27
+ --
28
+ 2.5.0
29
+
data/test_all CHANGED
@@ -14,11 +14,11 @@
14
14
  RUBIES="\
15
15
  ruby-2.2 \
16
16
  ruby-2.1 \
17
- ruby-2.0.0-p598 \
17
+ ruby-2.0.0-p647 \
18
18
  ruby-1.9.3-p551 \
19
19
  ruby-1.9.2-p330 \
20
- jruby-9.0.0.0.pre1 \
21
- jruby-1.7.18
20
+ jruby-9.0.4.0 \
21
+ jruby-1.7.19
22
22
  "
23
23
 
24
24
  TEST_LOG=test.log
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.6.2
4
+ version: 1.6.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Patterson
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-01-23 00:00:00.000000000 Z
15
+ date: 2015-11-16 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: mini_portile
@@ -174,14 +174,14 @@ dependencies:
174
174
  requirements:
175
175
  - - ~>
176
176
  - !ruby/object:Gem::Version
177
- version: '3.13'
177
+ version: '3.14'
178
178
  type: :development
179
179
  prerelease: false
180
180
  version_requirements: !ruby/object:Gem::Requirement
181
181
  requirements:
182
182
  - - ~>
183
183
  - !ruby/object:Gem::Version
184
- version: '3.13'
184
+ version: '3.14'
185
185
  description: |-
186
186
  Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among Nokogiri's
187
187
  many features is the ability to search documents via XPath or CSS3 selectors.
@@ -399,6 +399,12 @@ files:
399
399
  - ports/archives/libxslt-1.1.28.tar.gz
400
400
  - ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch
401
401
  - ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
402
+ - ports/patches/libxml2/0003-Stop-parsing-on-entities-boundaries-errors.patch
403
+ - ports/patches/libxml2/0004-Cleanup-conditional-section-error-handling.patch
404
+ - ports/patches/libxml2/0005-CVE-2015-1819-Enforce-the-reader-to-run-in-constant-.patch
405
+ - ports/patches/libxml2/0006-Another-variation-of-overflow-in-Conditional-section.patch
406
+ - ports/patches/libxml2/0007-Fix-an-error-in-previous-Conditional-section-patch.patch
407
+ - ports/patches/libxml2/0008-CVE-2015-8035-Fix-XZ-compression-support-loop.patch
402
408
  - ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch
403
409
  - ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
404
410
  - ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch
@@ -411,6 +417,7 @@ files:
411
417
  - ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
412
418
  - ports/patches/libxslt/0014-Fix-for-bug-436589.patch
413
419
  - ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch
420
+ - ports/patches/libxslt/0016-Fix-for-type-confusion-in-preprocessing-attributes.patch
414
421
  - ports/patches/sort-patches-by-date
415
422
  - suppressions/README.txt
416
423
  - suppressions/nokogiri_ree-1.8.7.358.supp
@@ -547,78 +554,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
547
554
  version: '0'
548
555
  requirements: []
549
556
  rubyforge_project:
550
- rubygems_version: 2.4.2
557
+ rubygems_version: 2.4.8
551
558
  signing_key:
552
559
  specification_version: 4
553
560
  summary: Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser
554
- test_files:
555
- - test/xml/test_processing_instruction.rb
556
- - test/xml/test_c14n.rb
557
- - test/xml/test_builder.rb
558
- - test/xml/test_document_fragment.rb
559
- - test/xml/test_comment.rb
560
- - test/xml/test_unparented_node.rb
561
- - test/xml/sax/test_parser_context.rb
562
- - test/xml/sax/test_parser.rb
563
- - test/xml/sax/test_push_parser.rb
564
- - test/xml/test_node_reparenting.rb
565
- - test/xml/test_syntax_error.rb
566
- - test/xml/test_cdata.rb
567
- - test/xml/test_entity_reference.rb
568
- - test/xml/test_schema.rb
569
- - test/xml/test_xinclude.rb
570
- - test/xml/test_document.rb
571
- - test/xml/node/test_subclass.rb
572
- - test/xml/node/test_save_options.rb
573
- - test/xml/test_node_inheritance.rb
574
- - test/xml/test_text.rb
575
- - test/xml/test_xpath.rb
576
- - test/xml/test_element_decl.rb
577
- - test/xml/test_node_attributes.rb
578
- - test/xml/test_attribute_decl.rb
579
- - test/xml/test_node.rb
580
- - test/xml/test_reader_encoding.rb
581
- - test/xml/test_parse_options.rb
582
- - test/xml/test_node_set.rb
583
- - test/xml/test_dtd.rb
584
- - test/xml/test_document_encoding.rb
585
- - test/xml/test_entity_decl.rb
586
- - test/xml/test_node_encoding.rb
587
- - test/xml/test_attr.rb
588
- - test/xml/test_relax_ng.rb
589
- - test/xml/test_namespace.rb
590
- - test/xml/test_element_content.rb
591
- - test/xml/test_dtd_encoding.rb
592
- - test/test_reader.rb
593
- - test/css/test_tokenizer.rb
594
- - test/css/test_xpath_visitor.rb
595
- - test/css/test_nthiness.rb
596
- - test/css/test_parser.rb
597
- - test/html/test_builder.rb
598
- - test/html/test_document_fragment.rb
599
- - test/html/sax/test_parser_context.rb
600
- - test/html/sax/test_parser.rb
601
- - test/html/sax/test_push_parser.rb
602
- - test/html/test_element_description.rb
603
- - test/html/test_document.rb
604
- - test/html/test_named_characters.rb
605
- - test/html/test_node.rb
606
- - test/html/test_document_encoding.rb
607
- - test/html/test_node_encoding.rb
608
- - test/test_memory_leak.rb
609
- - test/test_soap4r_sax.rb
610
- - test/xslt/test_custom_functions.rb
611
- - test/xslt/test_exception_handling.rb
612
- - test/test_nokogiri.rb
613
- - test/test_xslt_transforms.rb
614
- - test/test_convert_xpath.rb
615
- - test/decorators/test_slop.rb
616
- - test/namespaces/test_namespaces_in_cloned_doc.rb
617
- - test/namespaces/test_additional_namespaces_in_builder_doc.rb
618
- - test/namespaces/test_namespaces_in_parsed_doc.rb
619
- - test/namespaces/test_namespaces_aliased_default.rb
620
- - test/namespaces/test_namespaces_preservation.rb
621
- - test/namespaces/test_namespaces_in_created_doc.rb
622
- - test/namespaces/test_namespaces_in_builder_doc.rb
623
- - test/test_encoding_handler.rb
624
- - test/test_css_cache.rb
561
+ test_files: []