tidy 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES +13 -0
  2. data/VERSION +1 -1
  3. data/lib/tidy/tidybuf.rb +1 -1
  4. metadata +5 -5
data/CHANGES CHANGED
@@ -1,3 +1,16 @@
1
+ V 1.1.1 2005/03/07
2
+
3
+ - Bugfix
4
+
5
+ Tidybuf.to_s assumes that TidyBuffer.bp is null-terminated. This is
6
+ only true if the length of the data is evenly divisable by 256, but
7
+ if Tidy output is e.g. 512 bytes long the buffer is not null-terminated
8
+ and the code reads out of bounds. Result: garbage chars in output.
9
+
10
+ Fix: Code changed to read only TidyBuffer.size bytes from the buffer.
11
+ In TidyBuffer#to_s: @struct.bp.to_s => @struct.bp.to_s(@struct.size)
12
+ '.'*345 = 512 char output (for testing)
13
+
1
14
  V 1.1.0 2005/02/21
2
15
 
3
16
  - $TIDYLIB global eliminated
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.1.1
@@ -36,7 +36,7 @@ class Tidybuf
36
36
  # Convert to string.
37
37
  #
38
38
  def to_s
39
- @struct.bp.to_s
39
+ @struct.bp.to_s(@struct.size)
40
40
  end
41
41
 
42
42
  end
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.3
2
+ rubygems_version: 0.8.6
3
3
  specification_version: 1
4
4
  name: tidy
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2005-02-21
6
+ version: 1.1.1
7
+ date: 2005-03-07
8
8
  summary: Ruby interface to HTML Tidy Library Project
9
9
  require_paths:
10
10
  - lib
@@ -38,11 +38,11 @@ files:
38
38
  - test/usage.rb
39
39
  - lib/tidy
40
40
  - lib/tidy.rb
41
- - lib/tidy/tidylib.rb
42
41
  - lib/tidy/tidyerr.rb
42
+ - lib/tidy/tidyopt.rb
43
43
  - lib/tidy/tidyobj.rb
44
44
  - lib/tidy/tidybuf.rb
45
- - lib/tidy/tidyopt.rb
45
+ - lib/tidy/tidylib.rb
46
46
  test_files: []
47
47
  rdoc_options:
48
48
  - "--all"