Skip to content

Commit 74ffd67

Browse files
authored
dep: update libxml to 2.12.5 (branch v1.16.x) (#3122)
**What problem is this PR intended to solve?** Update libxml2 to v2.12.5: https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.5 **Have you included adequate test coverage?** Yes. **Does this change affect the behavior of either the C or the Java implementations?** Only affects C impl.
2 parents e994168 + 0d4018d commit 74ffd67

File tree

4 files changed

+18
-40
lines changed

4 files changed

+18
-40
lines changed

CHANGELOG.md

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ Nokogiri follows [Semantic Versioning](https://semver.org/), please see the [REA
44

55
---
66

7+
## v1.16.next / unreleased
8+
9+
### Security
10+
11+
* [CRuby] Vendored libxml2 is updated to address CVE-2024-25062. See [GHSA-xc9x-jj77-9p9j](https://github.com/sparklemotion/nokogiri/security/advisories/GHSA-xc9x-jj77-9p9j) for more information.
12+
13+
14+
### Dependencies
15+
16+
* [CRuby] Vendored libxml2 is updated to [v2.12.5](https://gitlab.gnome.org/GNOME/libxml2/-/releases/v2.12.5) from v2.12.4. (@flavorjones)
17+
18+
719
## v1.16.1 / 2024-02-03
820

921
### Dependencies

dependencies.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11

22
libxml2:
3-
version: "2.12.4"
4-
sha256: "497360e423cf0bd99eacdb7c6215dea92e6d6e89ee940393c2bae0e77cb9b7d0"
5-
# sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.4.sha256sum
3+
version: "2.12.5"
4+
sha256: "a972796696afd38073e0f59c283c3a2f5a560b5268b4babc391b286166526b21"
5+
# sha-256 hash provided in https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.5.sha256sum
66

77
libxslt:
88
version: "1.1.39"

patches/libxml2/0012-parser-Fix-crash-in-xmlParseInNodeContext-with-HTML.patch

-33
This file was deleted.

test/html5/test_api.rb

+3-4
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,11 @@ def test_node_wrap_uses_parent_node_as_parsing_context_node
239239
end
240240

241241
def test_parse_in_context_of_foreign_namespace
242-
if Nokogiri.uses_libxml?("~> 2.12.0")
243-
skip_unless_libxml2_patch("0012-parser-Fix-crash-in-xmlParseInNodeContext-with-HTML.patch")
244-
end
245-
246242
# https://github.com/sparklemotion/nokogiri/issues/3112
247243
# https://gitlab.gnome.org/GNOME/libxml2/-/issues/672
244+
# released upstream in v2.12.5
245+
skip if Nokogiri.uses_libxml?(["~> 2.12.0", "< 2.12.5"])
246+
248247
doc = Nokogiri::HTML5::Document.parse("<html><body><math>")
249248
math = doc.at_css("math")
250249

0 commit comments

Comments
 (0)