Project

General

Profile

This project is closed and read-only.

Actions

Bug #1758

closed

YAML fails to dump->load small specific string

Bug #1758: YAML fails to dump->load small specific string

Added by logo (abc def) about 17 years ago. Updated over 15 years ago.

Status:
Closed
Assignee:
-
[ruby-core:24254]

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


Related issues 1 (0 open1 closed)

Is duplicate of Ruby - Bug #1311: YAML::dump creates strings YAML::load cannot parseClosedActions
Actions

Also available in: PDF Atom