nokogiri 1.9.1-java → 1.10.0-java
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 +4 -4
- data/LICENSE-DEPENDENCIES.md +16 -14
- data/LICENSE.md +5 -28
- data/README.md +14 -3
- data/dependencies.yml +45 -42
- data/ext/java/nokogiri/internals/NokogiriHelpers.java +3 -9
- data/lib/nokogiri/nokogiri.jar +0 -0
- data/lib/nokogiri/version.rb +1 -1
- metadata +5 -7
- data/patches/libxml2/0002-Fix-nullptr-deref-with-XPath-logic-ops.patch +0 -54
- data/patches/libxml2/0003-Fix-infinite-loop-in-LZMA-decompression.patch +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84b304b63e62342017d067c1b82443798a214d698d945646ee72b3647f2951a8
|
4
|
+
data.tar.gz: e3c71c9d96eac2fe37daaf31980f2510368a804980e88274e008e7bcaa41617e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df36221ff24a7a21864272babe99f263e39c6efab868ca7e60aef7a813cdbea17ace02839b0c17c88fb76bb4d78cf9faf701f197ca7ff627da292f3d3f1240a2
|
7
|
+
data.tar.gz: 4c23763a57e1d10af35b80d8d94d7de1b243cec1028dabfdd8ec1368b8aea240a42e5823520616307169a9af6ff113e3880167107da366b37024f05cd67969a0
|
data/LICENSE-DEPENDENCIES.md
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
## Vendored Dependency Licenses
|
2
|
+
|
1
3
|
Nokogiri ships with some third party dependencies, which are listed
|
2
4
|
here along with their licenses.
|
3
5
|
|
@@ -20,9 +22,9 @@ present in any non-Windows releases.
|
|
20
22
|
|
21
23
|
-----
|
22
24
|
|
23
|
-
|
25
|
+
## default platform release
|
24
26
|
|
25
|
-
|
27
|
+
### libxml2
|
26
28
|
|
27
29
|
MIT
|
28
30
|
|
@@ -53,7 +55,7 @@ http://xmlsoft.org/
|
|
53
55
|
THE SOFTWARE.
|
54
56
|
|
55
57
|
|
56
|
-
|
58
|
+
### libxslt
|
57
59
|
|
58
60
|
MIT
|
59
61
|
|
@@ -113,9 +115,9 @@ http://xmlsoft.org/libxslt/
|
|
113
115
|
ings in this Software without prior written authorization from him.
|
114
116
|
----------------------------------------------------------------------
|
115
117
|
|
116
|
-
|
118
|
+
## `java` platform release
|
117
119
|
|
118
|
-
|
120
|
+
### isorelax
|
119
121
|
|
120
122
|
MIT
|
121
123
|
|
@@ -144,7 +146,7 @@ http://iso-relax.sourceforge.net/
|
|
144
146
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
145
147
|
|
146
148
|
|
147
|
-
|
149
|
+
### jing
|
148
150
|
|
149
151
|
BSD-3-Clause
|
150
152
|
|
@@ -185,7 +187,7 @@ http://www.thaiopensource.com/relaxng/jing.html
|
|
185
187
|
SUCH DAMAGE.
|
186
188
|
|
187
189
|
|
188
|
-
|
190
|
+
### nekodtd
|
189
191
|
|
190
192
|
Apache 1.0-derived
|
191
193
|
|
@@ -238,7 +240,7 @@ https://people.apache.org/~andyc/neko/doc/dtd/
|
|
238
240
|
|
239
241
|
This license is based on the Apache Software License, version 1.1.
|
240
242
|
|
241
|
-
|
243
|
+
### nekohtml
|
242
244
|
|
243
245
|
Apache 2.0
|
244
246
|
|
@@ -447,7 +449,7 @@ http://nekohtml.sourceforge.net/
|
|
447
449
|
See the License for the specific language governing permissions and
|
448
450
|
limitations under the License.
|
449
451
|
|
450
|
-
|
452
|
+
### xalan
|
451
453
|
|
452
454
|
Apache 2.0
|
453
455
|
|
@@ -658,7 +660,7 @@ covers xalan.jar and serializer.jar
|
|
658
660
|
limitations under the License.
|
659
661
|
|
660
662
|
|
661
|
-
|
663
|
+
### xerces
|
662
664
|
|
663
665
|
Apache 2.0
|
664
666
|
|
@@ -868,7 +870,7 @@ https://xerces.apache.org/xerces2-j/
|
|
868
870
|
limitations under the License.
|
869
871
|
|
870
872
|
|
871
|
-
|
873
|
+
### xml-apis
|
872
874
|
|
873
875
|
Apache 2.0
|
874
876
|
|
@@ -1088,13 +1090,13 @@ https://xerces.apache.org/xml-commons/
|
|
1088
1090
|
limitations under the License.
|
1089
1091
|
|
1090
1092
|
|
1091
|
-
|
1093
|
+
## binary windows release
|
1092
1094
|
|
1093
1095
|
NOTE: these libraries are redistributed ONLY with the binary
|
1094
1096
|
cross-compiled Windows platform version of Nokogiri, both x86-mingw32
|
1095
1097
|
and x64-mingw32.
|
1096
1098
|
|
1097
|
-
|
1099
|
+
### zlib
|
1098
1100
|
|
1099
1101
|
zlib license
|
1100
1102
|
|
@@ -1122,7 +1124,7 @@ http://www.zlib.net/zlib_license.html
|
|
1122
1124
|
jloup@gzip.org madler@alumni.caltech.edu
|
1123
1125
|
|
1124
1126
|
|
1125
|
-
|
1127
|
+
### libiconv
|
1126
1128
|
|
1127
1129
|
LGPL
|
1128
1130
|
|
data/LICENSE.md
CHANGED
@@ -1,32 +1,9 @@
|
|
1
|
-
|
1
|
+
The MIT License
|
2
2
|
|
3
|
-
Copyright
|
3
|
+
Copyright 2008 -- 2018 by Aaron Patterson, Mike Dalessio, Charles Nutter, Sergio Arbeo, Patrick Mahoney, Yoko Harada, Akinori MUSHA, John Shahid, Lars Kanis
|
4
4
|
|
5
|
-
|
6
|
-
* [Mike Dalessio](http://mike.daless.io)
|
7
|
-
* [Charles Nutter](http://blog.headius.com)
|
8
|
-
* [Sergio Arbeo](http://www.serabe.com)
|
9
|
-
* [Patrick Mahoney](http://polycrystal.org)
|
10
|
-
* [Yoko Harada](http://yokolet.blogspot.com)
|
11
|
-
* [Akinori MUSHA](https://akinori.org)
|
12
|
-
* [John Shahid](https://github.com/jvshahid)
|
13
|
-
* [Lars Kanis](https://github.com/larskanis)
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
14
6
|
|
15
|
-
|
16
|
-
a copy of this software and associated documentation files (the
|
17
|
-
'Software'), to deal in the Software without restriction, including
|
18
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
19
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
20
|
-
permit persons to whom the Software is furnished to do so, subject to
|
21
|
-
the following conditions:
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
22
8
|
|
23
|
-
|
24
|
-
included in all copies or substantial portions of the Software.
|
25
|
-
|
26
|
-
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
27
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
28
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
29
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
30
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
31
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
32
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
@@ -6,6 +6,7 @@ Nokogiri (鋸) is an HTML, XML, SAX, and Reader parser. Among
|
|
6
6
|
Nokogiri's many features is the ability to search documents via XPath
|
7
7
|
or CSS3 selectors.
|
8
8
|
|
9
|
+
|
9
10
|
## Links
|
10
11
|
|
11
12
|
* http://nokogiri.org
|
@@ -19,6 +20,7 @@ or CSS3 selectors.
|
|
19
20
|
[![Concourse CI](https://ci.nokogiri.org/api/v1/teams/nokogiri-core/pipelines/nokogiri/jobs/ruby-2.4-system/badge)](https://ci.nokogiri.org/teams/nokogiri-core/pipelines/nokogiri?groups=master)
|
20
21
|
[![Code Climate](https://codeclimate.com/github/sparklemotion/nokogiri.svg)](https://codeclimate.com/github/sparklemotion/nokogiri)
|
21
22
|
[![Join the chat at https://gitter.im/sparklemotion/nokogiri](https://badges.gitter.im/sparklemotion/nokogiri.svg)](https://gitter.im/sparklemotion/nokogiri?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
23
|
+
[![Tidelift dependencies](https://tidelift.com/badges/github/sparklemotion/nokogiri)](https://tidelift.com/subscription/pkg/rubygems-nokogiri?utm_source=rubygems-nokogiri&utm_medium=referral&utm_campaign=readme)
|
22
24
|
|
23
25
|
|
24
26
|
## Features
|
@@ -75,10 +77,16 @@ There are open-source tutorials (to which we invite contributions!) here: http:/
|
|
75
77
|
* Before filing a bug report, please read our submission guidelines: http://nokogiri.org/tutorials/getting_help.html
|
76
78
|
* The IRC channel is #nokogiri on freenode.
|
77
79
|
|
80
|
+
Consider subscribing to [Tidelift][tidelift] which provides license assurances and timely security notifications for your open source dependencies, including Nokogiri. [Tidelift][tidelift] subscriptions also help the Nokogiri maintainers fund our [automated testing](https://ci.nokogiri.org) which in turn allows us to ship releases, bugfixes, and security updates more often.
|
81
|
+
|
82
|
+
[tidelift]: https://tidelift.com/subscription/pkg/rubygems-nokogiri?utm_source=rubygems-nokogiri&utm_medium=referral&utm_campaign=readme
|
83
|
+
|
78
84
|
|
79
85
|
## Security and Vulnerability Reporting
|
80
86
|
|
81
|
-
|
87
|
+
Please report vulnerabilities at https://hackerone.com/nokogiri
|
88
|
+
|
89
|
+
Full information and description of our security policy is in [`SECURITY.md`](SECURITY.md)
|
82
90
|
|
83
91
|
|
84
92
|
## Synopsis
|
@@ -113,7 +121,7 @@ end
|
|
113
121
|
|
114
122
|
## Requirements
|
115
123
|
|
116
|
-
* Ruby 2.
|
124
|
+
* Ruby 2.3.0 or higher, including any development packages necessary
|
117
125
|
to compile native extensions.
|
118
126
|
|
119
127
|
* In Nokogiri 1.6.0 and later libxml2 and libxslt are bundled with the
|
@@ -161,6 +169,7 @@ explicitly setting the encoding to EUC-JP on the parser:
|
|
161
169
|
doc = Nokogiri.XML('<foo><bar /></foo>', nil, 'EUC-JP')
|
162
170
|
```
|
163
171
|
|
172
|
+
|
164
173
|
## Development
|
165
174
|
|
166
175
|
```bash
|
@@ -170,4 +179,6 @@ explicitly setting the encoding to EUC-JP on the parser:
|
|
170
179
|
|
171
180
|
## License
|
172
181
|
|
173
|
-
MIT
|
182
|
+
This project is licensed under the terms of the MIT license.
|
183
|
+
|
184
|
+
See this license at [`LICENSE.md`](LICENSE.md).
|
data/dependencies.yml
CHANGED
@@ -1,56 +1,59 @@
|
|
1
1
|
libxml2:
|
2
|
-
version: "2.9.
|
3
|
-
sha256: "
|
4
|
-
#
|
2
|
+
version: "2.9.9"
|
3
|
+
sha256: "94fb70890143e3c6549f265cee93ec064c80a84c42ad0f23e85ee1fd6540a871"
|
4
|
+
# manually verified checksum:
|
5
5
|
#
|
6
|
-
#
|
7
|
-
#
|
8
|
-
#
|
9
|
-
#
|
10
|
-
#
|
11
|
-
#
|
12
|
-
#
|
13
|
-
#
|
6
|
+
# $ gpg --verify libxml2-2.9.9.tar.gz.asc ports/archives/libxml2-2.9.9.tar.gz
|
7
|
+
# gpg: Signature made Thu 03 Jan 2019 01:14:47 PM EST
|
8
|
+
# gpg: using RSA key 15588B26596BEA5D
|
9
|
+
# gpg: Good signature from "Daniel Veillard (Red Hat work email) <veillard@redhat.com>" [unknown]
|
10
|
+
# gpg: aka "Daniel Veillard <Daniel.Veillard@w3.org>" [unknown]
|
11
|
+
# gpg: WARNING: This key is not certified with a trusted signature!
|
12
|
+
# gpg: There is no indication that the signature belongs to the owner.
|
13
|
+
# Primary key fingerprint: C744 15BA 7C9C 7F78 F02E 1DC3 4606 B8A5 DE95 BC1F
|
14
|
+
# Subkey fingerprint: DB46 681B B91A DCEA 170F A2D4 1558 8B26 596B EA5D
|
14
15
|
#
|
15
|
-
#
|
16
|
-
# -----BEGIN PGP SIGNATURE-----
|
16
|
+
# using this pgp signature:
|
17
17
|
#
|
18
|
-
#
|
19
|
-
#
|
20
|
-
#
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
#
|
25
|
-
#
|
18
|
+
# -----BEGIN PGP SIGNATURE-----
|
19
|
+
#
|
20
|
+
# iQEbBAABAgAGBQJcLlEXAAoJEBVYiyZZa+pd1B8H93xeCYNBLx+eX0xe3qS3ReS/
|
21
|
+
# YstjkXKUkmDQYwqQ/9Knmv1P6NX64hQL5E1pZX5sXp36giwXXJ5tCK72VRzektzU
|
22
|
+
# Kpo+M1/QA9feZQs1GmyKaXYzNwTSJnsdKA9nWqTHZ3bzfdhFSZ0czo94vgY/cz5z
|
23
|
+
# 9P3FIgeldj1vi8p2rjXbArMFQyaxHnve9LdxI8hbudNSeUw/FEV6mjtXrlZ7MXqn
|
24
|
+
# hmAkah2JwktOStF5tIlddCRqZeUPUX5flBxT95gfskXXlGEhaoGMXcC3izqqJyV2
|
25
|
+
# sx5nY7fnXdkwfYsgRUXYWmDmbs8DnFjXH9lux9O4OWglLonaRoAqFPcOzE3aCw==
|
26
|
+
# =4qWg
|
27
|
+
# -----END PGP SIGNATURE-----
|
26
28
|
#
|
27
29
|
|
28
30
|
libxslt:
|
29
|
-
version: "1.1.
|
30
|
-
sha256: "
|
31
|
-
#
|
31
|
+
version: "1.1.33"
|
32
|
+
sha256: "8e36605144409df979cab43d835002f63988f3dc94d5d3537c12796db90e38c8"
|
33
|
+
# manually verified checksum:
|
32
34
|
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
36
|
-
#
|
37
|
-
#
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
35
|
+
# $ gpg --verify libxslt-1.1.33.tar.gz.asc ports/archives/libxslt-1.1.33.tar.gz
|
36
|
+
# gpg: Signature made Thu 03 Jan 2019 01:30:49 PM EST
|
37
|
+
# gpg: using RSA key 15588B26596BEA5D
|
38
|
+
# gpg: Good signature from "Daniel Veillard (Red Hat work email) <veillard@redhat.com>" [unknown]
|
39
|
+
# gpg: aka "Daniel Veillard <Daniel.Veillard@w3.org>" [unknown]
|
40
|
+
# gpg: WARNING: This key is not certified with a trusted signature!
|
41
|
+
# gpg: There is no indication that the signature belongs to the owner.
|
42
|
+
# Primary key fingerprint: C744 15BA 7C9C 7F78 F02E 1DC3 4606 B8A5 DE95 BC1F
|
43
|
+
# Subkey fingerprint: DB46 681B B91A DCEA 170F A2D4 1558 8B26 596B EA5D
|
41
44
|
#
|
42
|
-
#
|
45
|
+
# using this pgp signature:
|
43
46
|
#
|
44
|
-
#
|
47
|
+
# -----BEGIN PGP SIGNATURE-----
|
45
48
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
49
|
+
# iQEcBAABAgAGBQJcLlTZAAoJEBVYiyZZa+pd9NkIAIf6ei2iSpR/0QOyS71esDq8
|
50
|
+
# 407PcUXd/yUjDANm4Uvm7kKK+SbbfBxFIPva4g984Noe1zYMfjK3u3iNs6jykySf
|
51
|
+
# mN5eo2wNCxsZnqjbnsLgQvn5VCQpPInTddTuGUxgqJyvnR7p785L1oA2EStSPMP4
|
52
|
+
# BGZ9dZGlbreK35WzgrhUi0VN5egJW2fpMsw7rTPvfwK+90gXL0DEm8v3WlA7fCDL
|
53
|
+
# QsvuPm7jPOXxdt5bYrVP8wpNMTJIGqV6jxh7Vvl6kiGLldUjCyoCh0AGXLror0Gs
|
54
|
+
# sAMlRKJNodpcCYkIWxzjLt74sUciKNrPLHZlXJcclZMONen1GWnVDcv83Tt9n6w=
|
55
|
+
# =iAm8
|
56
|
+
# -----END PGP SIGNATURE-----
|
54
57
|
#
|
55
58
|
|
56
59
|
zlib:
|
@@ -745,15 +745,9 @@ public class NokogiriHelpers {
|
|
745
745
|
|
746
746
|
Class nkfClass;
|
747
747
|
try {
|
748
|
-
|
749
|
-
|
750
|
-
|
751
|
-
try {
|
752
|
-
// Before JRuby 1.7
|
753
|
-
nkfClass = runtime.getClassLoader().loadClass("org.jruby.RubyNKF");
|
754
|
-
} catch (ClassNotFoundException e2) {
|
755
|
-
return str;
|
756
|
-
}
|
748
|
+
nkfClass = runtime.getClassLoader().loadClass("org.jruby.RubyNKF");
|
749
|
+
} catch (ClassNotFoundException e2) {
|
750
|
+
return str;
|
757
751
|
}
|
758
752
|
Method nkf_method;
|
759
753
|
try {
|
data/lib/nokogiri/nokogiri.jar
CHANGED
Binary file
|
data/lib/nokogiri/version.rb
CHANGED
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.
|
4
|
+
version: 1.10.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Aaron Patterson
|
@@ -14,7 +14,7 @@ authors:
|
|
14
14
|
autorequire:
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
|
-
date:
|
17
|
+
date: 2019-01-04 00:00:00.000000000 Z
|
18
18
|
dependencies:
|
19
19
|
- !ruby/object:Gem::Dependency
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
@@ -119,7 +119,7 @@ dependencies:
|
|
119
119
|
requirements:
|
120
120
|
- - "~>"
|
121
121
|
- !ruby/object:Gem::Version
|
122
|
-
version: 0.
|
122
|
+
version: 0.7.0
|
123
123
|
name: rake-compiler-dock
|
124
124
|
prerelease: false
|
125
125
|
type: :development
|
@@ -127,7 +127,7 @@ dependencies:
|
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: 0.
|
130
|
+
version: 0.7.0
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
requirement: !ruby/object:Gem::Requirement
|
133
133
|
requirements:
|
@@ -495,8 +495,6 @@ files:
|
|
495
495
|
- lib/xml-apis.jar
|
496
496
|
- lib/xsd/xmlparser/nokogiri.rb
|
497
497
|
- patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
|
498
|
-
- patches/libxml2/0002-Fix-nullptr-deref-with-XPath-logic-ops.patch
|
499
|
-
- patches/libxml2/0003-Fix-infinite-loop-in-LZMA-decompression.patch
|
500
498
|
homepage:
|
501
499
|
licenses:
|
502
500
|
- MIT
|
@@ -511,7 +509,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
511
509
|
requirements:
|
512
510
|
- - ">="
|
513
511
|
- !ruby/object:Gem::Version
|
514
|
-
version:
|
512
|
+
version: 2.3.0
|
515
513
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
516
514
|
requirements:
|
517
515
|
- - ">="
|
@@ -1,54 +0,0 @@
|
|
1
|
-
From a436374994c47b12d5de1b8b1d191a098fa23594 Mon Sep 17 00:00:00 2001
|
2
|
-
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
3
|
-
Date: Mon, 30 Jul 2018 12:54:38 +0200
|
4
|
-
Subject: [PATCH] Fix nullptr deref with XPath logic ops
|
5
|
-
|
6
|
-
If the XPath stack is corrupted, for example by a misbehaving extension
|
7
|
-
function, the "and" and "or" XPath operators could dereference NULL
|
8
|
-
pointers. Check that the XPath stack isn't empty and optimize the
|
9
|
-
logic operators slightly.
|
10
|
-
|
11
|
-
Closes: https://gitlab.gnome.org/GNOME/libxml2/issues/5
|
12
|
-
|
13
|
-
Also see
|
14
|
-
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=901817
|
15
|
-
https://bugzilla.redhat.com/show_bug.cgi?id=1595985
|
16
|
-
|
17
|
-
This is CVE-2018-14404.
|
18
|
-
|
19
|
-
Thanks to Guy Inbar for the report.
|
20
|
-
---
|
21
|
-
xpath.c | 10 ++++------
|
22
|
-
1 file changed, 4 insertions(+), 6 deletions(-)
|
23
|
-
|
24
|
-
diff --git a/xpath.c b/xpath.c
|
25
|
-
index 3fae0bf..5e3bb9f 100644
|
26
|
-
--- a/xpath.c
|
27
|
-
+++ b/xpath.c
|
28
|
-
@@ -13234,9 +13234,8 @@ xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
|
29
|
-
return(0);
|
30
|
-
}
|
31
|
-
xmlXPathBooleanFunction(ctxt, 1);
|
32
|
-
- arg1 = valuePop(ctxt);
|
33
|
-
- arg1->boolval &= arg2->boolval;
|
34
|
-
- valuePush(ctxt, arg1);
|
35
|
-
+ if (ctxt->value != NULL)
|
36
|
-
+ ctxt->value->boolval &= arg2->boolval;
|
37
|
-
xmlXPathReleaseObject(ctxt->context, arg2);
|
38
|
-
return (total);
|
39
|
-
case XPATH_OP_OR:
|
40
|
-
@@ -13252,9 +13251,8 @@ xmlXPathCompOpEval(xmlXPathParserContextPtr ctxt, xmlXPathStepOpPtr op)
|
41
|
-
return(0);
|
42
|
-
}
|
43
|
-
xmlXPathBooleanFunction(ctxt, 1);
|
44
|
-
- arg1 = valuePop(ctxt);
|
45
|
-
- arg1->boolval |= arg2->boolval;
|
46
|
-
- valuePush(ctxt, arg1);
|
47
|
-
+ if (ctxt->value != NULL)
|
48
|
-
+ ctxt->value->boolval |= arg2->boolval;
|
49
|
-
xmlXPathReleaseObject(ctxt->context, arg2);
|
50
|
-
return (total);
|
51
|
-
case XPATH_OP_EQUAL:
|
52
|
-
--
|
53
|
-
2.17.1
|
54
|
-
|
@@ -1,50 +0,0 @@
|
|
1
|
-
From 2240fbf5912054af025fb6e01e26375100275e74 Mon Sep 17 00:00:00 2001
|
2
|
-
From: Nick Wellnhofer <wellnhofer@aevum.de>
|
3
|
-
Date: Mon, 30 Jul 2018 13:14:11 +0200
|
4
|
-
Subject: [PATCH] Fix infinite loop in LZMA decompression
|
5
|
-
MIME-Version: 1.0
|
6
|
-
Content-Type: text/plain; charset=UTF-8
|
7
|
-
Content-Transfer-Encoding: 8bit
|
8
|
-
|
9
|
-
Check the liblzma error code more thoroughly to avoid infinite loops.
|
10
|
-
|
11
|
-
Closes: https://gitlab.gnome.org/GNOME/libxml2/issues/13
|
12
|
-
Closes: https://bugzilla.gnome.org/show_bug.cgi?id=794914
|
13
|
-
|
14
|
-
This is CVE-2018-9251 and CVE-2018-14567.
|
15
|
-
|
16
|
-
Thanks to Dongliang Mu and Simon Wörner for the reports.
|
17
|
-
---
|
18
|
-
xzlib.c | 9 +++++++++
|
19
|
-
1 file changed, 9 insertions(+)
|
20
|
-
|
21
|
-
diff --git a/xzlib.c b/xzlib.c
|
22
|
-
index a839169..0ba88cf 100644
|
23
|
-
--- a/xzlib.c
|
24
|
-
+++ b/xzlib.c
|
25
|
-
@@ -562,6 +562,10 @@ xz_decomp(xz_statep state)
|
26
|
-
"internal error: inflate stream corrupt");
|
27
|
-
return -1;
|
28
|
-
}
|
29
|
-
+ /*
|
30
|
-
+ * FIXME: Remapping a couple of error codes and falling through
|
31
|
-
+ * to the LZMA error handling looks fragile.
|
32
|
-
+ */
|
33
|
-
if (ret == Z_MEM_ERROR)
|
34
|
-
ret = LZMA_MEM_ERROR;
|
35
|
-
if (ret == Z_DATA_ERROR)
|
36
|
-
@@ -587,6 +591,11 @@ xz_decomp(xz_statep state)
|
37
|
-
xz_error(state, LZMA_PROG_ERROR, "compression error");
|
38
|
-
return -1;
|
39
|
-
}
|
40
|
-
+ if ((state->how != GZIP) &&
|
41
|
-
+ (ret != LZMA_OK) && (ret != LZMA_STREAM_END)) {
|
42
|
-
+ xz_error(state, ret, "lzma error");
|
43
|
-
+ return -1;
|
44
|
-
+ }
|
45
|
-
} while (strm->avail_out && ret != LZMA_STREAM_END);
|
46
|
-
|
47
|
-
/* update available output and crc check value */
|
48
|
-
--
|
49
|
-
2.17.1
|
50
|
-
|