This project is closed and read-only.
Bug #1758
closedYAML fails to dump->load small specific string
Description
=begin
YAML fails on this testcase:
require 'yaml'
YAML::load(YAML::dump("\n a\n""))
with:
/usr/lib/ruby/1.8/yaml.rb:133:in load': syntax error on line 3, col 0: "' (ArgumentError)
from /usr/lib/ruby/1.8/yaml.rb:133:in `load'
from test.rb:2
I tested this with ruby 1.8.7 and ruby 1.9.1, both failed. The testcase is very specific, change one thing and it doesn't crash anymore. I have yaml dumps with large strings and this bug was triggered 3 times.
=end
Updated by alter7 (Pawel Barcik) about 17 years ago
=begin
as described here:
Updated by coatl (caleb clausen) almost 17 years ago
=begin
This appears to be a duplicate of #1311, which contains a more comprehensive solution, and a patch.
=end
Updated by mame (Yusuke Endoh) over 16 years ago
- Status changed from Open to Closed
=begin
Hi,
Syck is deprecated, in effect. This issue won't be fixed.
Instead, try Psych. [ruby-core:29337]
--
Yusuke Endoh mame@tsg.ne.jp
=end