Debian Bug report logs - #661700
libyaml-perl: Accepts invalid YAML.

version graph

Package: libyaml-perl; Maintainer for libyaml-perl is Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>; Source for libyaml-perl is src:libyaml-perl.

Reported by: Charles Plessy <plessy@debian.org>

Date: Wed, 29 Feb 2012 14:24:01 UTC

Severity: normal

Found in version libyaml-perl/0.80-1

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, plessy@debian.org, Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>:
Bug#661700; Package libyaml-perl. (Wed, 29 Feb 2012 14:24:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Charles Plessy <plessy@debian.org>:
New Bug report received and forwarded. Copy sent to plessy@debian.org, Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>. (Wed, 29 Feb 2012 14:24:05 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Charles Plessy <plessy@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libyaml-perl: Accepts invalid YAML.
Date: Wed, 29 Feb 2012 23:20:19 +0900
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




Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Apr 23 21:26:57 2014; Machine Name: buxtehude.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.