[#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:

[BUG?] ArgumentError while YAML.load

From: Kaspar Schiess <eule@...>
Date: 2006-04-05 09:37:19 UTC
List: ruby-core #7679
Dear list, 

I have a rails application that caches utf-8 html by writing it into 
yaml-encoded files. When I try to read a particular .yaml file back, I 
get 

 ArgumentError: syntax error on line 9, col 702: `  <div class=
\"special_offer clearfix\">\r\n  <a hr
ef=\"http://www.aare-seeland-
mobil.ch/angebot/oeffentlicher_verkehr/europa-park-rust-freizeitspass-f
-r-alle\" image=\"&lt;img alt=&quot;Europa-Park Rust - Freizeitspass f
\xC3\xBCr Alle&quot; class=&qu
ot;special_offer&quot; src=&quot;/system/cms-
images/offer/54/00000237.png&quot; title=&quot;Europa-P
ark Rust - Freizeitspass f\xC3\xBCr Alle&quot; /&gt;\"><img alt=\"Europa-
Park Rust - Freizeitspass f
\xC3\xBCr Alle\" class=\"s
        from c:/unix/ruby/lib/ruby/1.8/yaml.rb:133:in `load'
        from c:/unix/ruby/lib/ruby/1.8/yaml.rb:133:in `load'
        from (irb):13

The bug seems to be triggered by the sequence 'f\xC3\xBCr' just after the 
word 'Freizeitspass'. This is using ruby 1.8.4 (and rails 1.1, YAML 0.60) 
on mingw and linux. 

If I eliminate the previous lines from the yaml document, it is not 
triggered anymore. If I eliminate the sequence '\xC3\xBC' (a german u 
umlaut) from the yaml document, the bug is not triggered. 

Has anyone seen this or an idea what this could be ? I will send the file  
I am talking about to anyone wanting to have a look at the problem. 
Please request it by mailing me (eule at space dot ch). 

Sorry for the verbosity and thank you for all suggestions, 
kaspar


In This Thread

Prev Next