Bug#661700: libyaml-perl: Accepts invalid YAML.
Charles Plessy
plessy at debian.org
Wed Feb 29 14:20:19 UTC 2012
Package: libyaml-perl
Version: 0.80-1
Severity: normal
Dear Perl team,
libyaml-perl accepts invalid YAML that is rejected by most other parsers (not
only Perl ones). I am not sure if it is a bug or a feature, hence the normal
severity, but please do not hesitate to raise it if you agree with me that this
behaviour is strange.
$ echo 'toto: toto: toto' | perl -MYAML -e '$/=""; Load(<STDIN>)'
$ echo 'toto: toto: toto' | perl -MYAML::XS -e '$/=""; Load(<STDIN>)'
YAML::XS::Load Error: The problem:
mapping values are not allowed in this context
was found at document: 1, line: 1, column: 11
Cheers,
-- Charles Plessy, Tsurumi, Kanagawa, Japan
-- System Information:
Debian Release: 6.0.4
APT prefers stable
APT policy: (910, 'stable'), (900, 'testing'), (800, 'unstable'), (500, 'proposed-updates'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libyaml-perl depends on:
ii perl 5.14.2-7
Versions of packages libyaml-perl recommends:
ii libyaml-libyaml-perl 0.38-1
ii libyaml-syck-perl 1.20-1
Versions of packages libyaml-perl suggests:
ii libyaml-shell-perl 0.60-1
-- no debconf information
More information about the pkg-perl-maintainers
mailing list