Subject: | YAML.pm doesn't roundtrip with itself |
Date: | Wed, 13 Jul 2011 15:56:22 -0400 |
To: | bug-YAML [...] rt.cpan.org |
From: | Thomas Sibley <trs [...] bestpractical.com> |
tom@blip ~ $ perl -MYAML -e 'Load(Dump({ foo => join "", q{"}x40000 }))'
Complex regular subexpression recursion limit (32766) exceeded at
/opt/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/YAML/Loader.pm line
535.
YAML Error: Can't parse single quoted string
Code: YAML_PARSE_ERR_BAD_SINGLE
Line: 2
Document: 1
at /opt/perlbrew/perls/perl-5.12.3/lib/site_perl/5.12.3/YAML.pm line 36
This is obviously a contrived example, but we've run into real world
cases of it breaking.