ox 2.0.8 → 2.0.9
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of ox might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/ext/ox/parse.c +8 -2
- data/lib/ox/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee595cb2877fd846e3876313780517e91a3e4705
|
4
|
+
data.tar.gz: 14418d0ea4f70c7b876727992546f074855ce509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7f39413fb9be2701c8d28d2410b78bb503656dc05132affea3dd1fa18aae54a42933225001d07b525764f0ed6d4e86bd479db47820a72b86066f3a7e6a3f8a8
|
7
|
+
data.tar.gz: b8e72240a020d7e990ff4de9e24deac1243ee13c159ece51c096bcc93a7bb5a3c0c92f4d9826363fcd2b1e7a4575ee2117d2132a645bafda912e25d8dfd82d12
|
data/README.md
CHANGED
@@ -34,9 +34,9 @@ A fast XML parser and Object marshaller as a Ruby gem.
|
|
34
34
|
|
35
35
|
## <a name="release">Release Notes</a>
|
36
36
|
|
37
|
-
### Release 2.0.
|
37
|
+
### Release 2.0.9
|
38
38
|
|
39
|
-
-
|
39
|
+
- Fixed bug that did not allow ISO-8859-1 characters and caused a crash.
|
40
40
|
|
41
41
|
## <a name="description">Description</a>
|
42
42
|
|
data/ext/ox/parse.c
CHANGED
@@ -674,7 +674,9 @@ read_text(PInfo pi) {
|
|
674
674
|
end = alloc_buf + size - 2;
|
675
675
|
}
|
676
676
|
if ('&' == c) {
|
677
|
-
b = read_coded_chars(pi, b)
|
677
|
+
if (0 == (b = read_coded_chars(pi, b))) {
|
678
|
+
return;
|
679
|
+
}
|
678
680
|
} else {
|
679
681
|
*b++ = c;
|
680
682
|
}
|
@@ -741,7 +743,9 @@ read_reduced_text(PInfo pi) {
|
|
741
743
|
}
|
742
744
|
spc = 0;
|
743
745
|
if ('&' == c) {
|
744
|
-
b = read_coded_chars(pi, b)
|
746
|
+
if (0 == (b = read_coded_chars(pi, b))) {
|
747
|
+
return;
|
748
|
+
}
|
745
749
|
} else {
|
746
750
|
*b++ = c;
|
747
751
|
}
|
@@ -968,6 +972,8 @@ read_coded_chars(PInfo pi, char *text) {
|
|
968
972
|
} else if (TolerantEffort == pi->options->effort) {
|
969
973
|
*text++ = '&';
|
970
974
|
return text;
|
975
|
+
} else if (u <= 0x00000000000000FFULL) {
|
976
|
+
*text++ = (char)u;
|
971
977
|
} else {
|
972
978
|
/*set_error(&pi->err, "Invalid encoding, need UTF-8 or UTF-16 encoding to parse &#nnnn; character sequences.", pi->str, pi->s); */
|
973
979
|
set_error(&pi->err, "Invalid encoding, need UTF-8 encoding to parse &#nnnn; character sequences.", pi->str, pi->s);
|
data/lib/ox/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Ohler
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: "A fast XML parser and object serializer that uses only standard C lib.\n
|
14
14
|
\ \nOptimized XML (Ox), as the name implies was written to provide speed
|