nokogiri 1.6.3.1 → 1.6.4

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.

Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -2
  3. data/CHANGELOG.ja.rdoc +16 -0
  4. data/CHANGELOG.rdoc +16 -0
  5. data/Gemfile +2 -2
  6. data/Manifest.txt +2 -11
  7. data/README.ja.rdoc +2 -2
  8. data/README.rdoc +2 -2
  9. data/Rakefile +1 -1
  10. data/build_all +1 -1
  11. data/dependencies.yml +1 -1
  12. data/ext/nokogiri/extconf.rb +115 -82
  13. data/ext/nokogiri/nokogiri.c +4 -0
  14. data/ext/nokogiri/xml_io.c +10 -6
  15. data/ext/nokogiri/xml_syntax_error.c +2 -1
  16. data/lib/nokogiri/css/parser.rb +175 -165
  17. data/lib/nokogiri/css/parser.y +8 -2
  18. data/lib/nokogiri/css/tokenizer.rb +1 -1
  19. data/lib/nokogiri/css/tokenizer.rex +1 -1
  20. data/lib/nokogiri/version.rb +3 -1
  21. data/ports/archives/libxml2-2.9.2.tar.gz +0 -0
  22. data/ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch +29 -0
  23. data/ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch +31 -0
  24. data/test/css/test_parser.rb +5 -0
  25. data/test/css/test_tokenizer.rb +17 -0
  26. data/test/html/test_document.rb +5 -5
  27. data/test/html/test_document_fragment.rb +5 -0
  28. data/test/xml/test_builder.rb +1 -1
  29. data/test/xml/test_document.rb +1 -9
  30. data/test/xml/test_entity_reference.rb +9 -3
  31. data/test/xml/test_node.rb +1 -1
  32. data/test/xml/test_syntax_error.rb +18 -0
  33. data/test/xml/test_xpath.rb +2 -0
  34. data/test_all +2 -2
  35. metadata +11 -20
  36. data/ports/archives/libxml2-2.8.0.tar.gz +0 -0
  37. data/ports/patches/libxml2/0001-Fix-parser-local-buffers-size-problems.patch +0 -265
  38. data/ports/patches/libxml2/0002-Fix-entities-local-buffers-size-problems.patch +0 -102
  39. data/ports/patches/libxml2/0003-Fix-an-error-in-previous-commit.patch +0 -26
  40. data/ports/patches/libxml2/0004-Fix-potential-out-of-bound-access.patch +0 -26
  41. data/ports/patches/libxml2/0005-Detect-excessive-entities-expansion-upon-replacement.patch +0 -158
  42. data/ports/patches/libxml2/0006-Do-not-fetch-external-parsed-entities.patch +0 -78
  43. data/ports/patches/libxml2/0007-Enforce-XML_PARSER_EOF-state-handling-through-the-pa.patch +0 -480
  44. data/ports/patches/libxml2/0008-Improve-handling-of-xmlStopParser.patch +0 -315
  45. data/ports/patches/libxml2/0009-Fix-a-couple-of-return-without-value.patch +0 -37
  46. data/ports/patches/libxml2/0010-Keep-non-significant-blanks-node-in-HTML-parser.patch +0 -2006
  47. data/ports/patches/libxml2/0011-Do-not-fetch-external-parameter-entities.patch +0 -39
@@ -1,39 +0,0 @@
1
- From 9cd1c3cfbd32655d60572c0a413e017260c854df Mon Sep 17 00:00:00 2001
2
- From: Daniel Veillard <veillard@redhat.com>
3
- Date: Tue, 22 Apr 2014 15:30:56 +0800
4
- Subject: [PATCH] Do not fetch external parameter entities
5
-
6
- Unless explicitely asked for when validating or replacing entities
7
- with their value. Problem pointed out by Daniel Berrange <berrange@redhat.com>
8
- ---
9
- parser.c | 14 ++++++++++++++
10
- 1 file changed, 14 insertions(+)
11
-
12
- diff --git a/parser.c b/parser.c
13
- index 9347ac9..c0dea05 100644
14
- --- a/parser.c
15
- +++ b/parser.c
16
- @@ -2598,6 +2598,20 @@ xmlParserHandlePEReference(xmlParserCtxtPtr ctxt) {
17
- xmlCharEncoding enc;
18
-
19
- /*
20
- + * Note: external parsed entities will not be loaded, it is
21
- + * not required for a non-validating parser, unless the
22
- + * option of validating, or substituting entities were
23
- + * given. Doing so is far more secure as the parser will
24
- + * only process data coming from the document entity by
25
- + * default.
26
- + */
27
- + if ((entity->etype == XML_EXTERNAL_PARAMETER_ENTITY) &&
28
- + ((ctxt->options & XML_PARSE_NOENT) == 0) &&
29
- + ((ctxt->options & XML_PARSE_DTDVALID) == 0) &&
30
- + (ctxt->validate == 0))
31
- + return;
32
- +
33
- + /*
34
- * handle the extra spaces added before and after
35
- * c.f. http://www.w3.org/TR/REC-xml#as-PE
36
- * this is done independently.
37
- --
38
- 1.8.3.2
39
-