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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7ed6f529b14d400593ee681a524e520c0a3ed73d
4
- data.tar.gz: 9d3322e32d7b45f9762d73948461bce742417f50
3
+ metadata.gz: ee595cb2877fd846e3876313780517e91a3e4705
4
+ data.tar.gz: 14418d0ea4f70c7b876727992546f074855ce509
5
5
  SHA512:
6
- metadata.gz: 02996c8baf34e6baed810ce9e8bff5e7af32d7c71ccd54dbaaf5fc21616c0596002b1467b674bdb1196c92ef60c9d9f9cda4225218aec3e1204a0763f49ce77b
7
- data.tar.gz: 9a7b502c29bb0771eaeb71d46579ba9e5e0959a6646b98c4b476369631c2b810ed68d4e62eeaf26e2527f6e5c9ae0ba6ec78c617d364f987df935c8b77d0e8d2
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.8
37
+ ### Release 2.0.9
38
38
 
39
- - Allow single quoted strings in all modes.
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
 
@@ -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);
@@ -1,5 +1,5 @@
1
1
 
2
2
  module Ox
3
3
  # Current version of the module.
4
- VERSION = '2.0.8'
4
+ VERSION = '2.0.9'
5
5
  end
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.8
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-08-06 00:00:00.000000000 Z
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