Hi,
In message "Re: [ruby-core:26133] [ruby:trunk] yaml access invalid memory area"
on Sat, 17 Oct 2009 08:41:03 +0900, Tanaka Akira <akr / fsij.org> writes:
|
|YAML generates error message with a garbage as :
|
|% ./ruby -ryaml -ve 'YAML.load("a: b\n" + "c"*100)' |& cat -v
|ruby 1.9.2dev (2009-10-17 trunk 25379) [i686-linux]
|/home/ruby/tcio/lib/ruby/1.9.1/yaml.rb:133:in `load': syntax error on line 1, col 100: `M-<^\^T^HM-AM-^?M-^?M-^?,M-r^S^H^B' (ArgumentError)
| from /home/ruby/tcio/lib/ruby/1.9.1/yaml.rb:133:in `load'
| from -e:1:in `<main>'
Syck seems to have implicit limitation of length of tokens. I
consider it a bug, and it should be fixed, but I feel it is quite
difficult to fix (as _why disappeared).
matz.