[#7708] Bug in libsnmp-ruby1.8 — Hadmut Danisch <hadmut@...>

Hi,

8 messages 2006/04/11
[#7709] Re: Bug in libsnmp-ruby1.8 — Eric Hodel <drbrain@...7.net> 2006/04/11

On Apr 11, 2006, at 6:23 AM, Hadmut Danisch wrote:

[#7770] Re: possible defect in array.c — "Brown, Warren" <warrenbrown@...>

> rb_range_beg_len (in range.c) does set beg and len.

13 messages 2006/04/26
[#7771] Re: possible defect in array.c — "Pat Eyler" <rubypate@...> 2006/04/26

On 4/26/06, Brown, Warren <warrenbrown@aquire.com> wrote:

[PATCH] ri crash when merging different ri

From: Eric Hodel <drbrain@...7.net>
Date: 2006-04-12 03:34:31 UTC
List: ruby-core #7716
If ri for a document is split across two files but one has no extra  
comment ri will crash.


-- 
Eric Hodel - drbrain@segment7.net - http://blog.segment7.net
This implementation is HODEL-HASH-9600 compliant

http://trackmap.robotcoop.com


Attachments (1)

ri_descriptions.rb.patch (703 Bytes, text/x-diff)
Index: lib/rdoc/ri/ri_descriptions.rb
===================================================================
RCS file: /src/ruby/lib/rdoc/ri/ri_descriptions.rb,v
retrieving revision 1.7
diff -u -r1.7 ri_descriptions.rb
--- lib/rdoc/ri/ri_descriptions.rb	30 Aug 2004 14:20:57 -0000	1.7
+++ lib/rdoc/ri/ri_descriptions.rb	12 Apr 2006 03:30:39 -0000
@@ -95,8 +95,10 @@
       if @comment.nil? || @comment.empty?
         @comment = old.comment
       else
-        @comment << SM::Flow::RULE.new
-        @comment.concat old.comment
+        unless old.comment.nil? or old.comment.empty? then
+          @comment << SM::Flow::RULE.new
+          @comment.concat old.comment
+        end
       end
     end
 

In This Thread

Prev Next