ox 1.0.1 → 1.0.2
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.
- data/ext/ox/parse.c +2 -2
- metadata +5 -3
data/ext/ox/parse.c
CHANGED
@@ -476,7 +476,7 @@ read_text(PInfo pi) {
|
|
476
476
|
if (end <= b + spc) {
|
477
477
|
unsigned long size;
|
478
478
|
|
479
|
-
if (0
|
479
|
+
if (0 == alloc_buf) {
|
480
480
|
size = sizeof(buf) * 2;
|
481
481
|
if (0 == (alloc_buf = (char*)malloc(size))) {
|
482
482
|
raise_error("text too long", pi->str, pi->s);
|
@@ -485,7 +485,7 @@ read_text(PInfo pi) {
|
|
485
485
|
b = alloc_buf + (b - buf);
|
486
486
|
} else {
|
487
487
|
unsigned long pos = b - alloc_buf;
|
488
|
-
|
488
|
+
|
489
489
|
size = (end - alloc_buf) * 2;
|
490
490
|
if (0 == (alloc_buf = (char*)realloc(alloc_buf, size))) {
|
491
491
|
raise_error("text too long", pi->str, pi->s);
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: ox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Peter Ohler
|
@@ -10,7 +10,8 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-01 00:00:00
|
13
|
+
date: 2011-07-01 00:00:00 +09:00
|
14
|
+
default_executable:
|
14
15
|
dependencies: []
|
15
16
|
|
16
17
|
description: A fast XML parser and object serializer that uses only standard C lib.
|
@@ -73,6 +74,7 @@ files:
|
|
73
74
|
- test/Sample.graffle
|
74
75
|
- LICENSE
|
75
76
|
- README.rdoc
|
77
|
+
has_rdoc: true
|
76
78
|
homepage: http://www.ohler.com/ox
|
77
79
|
licenses: []
|
78
80
|
|
@@ -98,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
100
|
requirements: []
|
99
101
|
|
100
102
|
rubyforge_project: ox
|
101
|
-
rubygems_version: 1.
|
103
|
+
rubygems_version: 1.6.2
|
102
104
|
signing_key:
|
103
105
|
specification_version: 3
|
104
106
|
summary: A fast XML parser and object serializer.
|