Skip Menu |

This queue is for tickets about the Devel-Declare CPAN distribution.

Report information
The Basics
Id: 47545
Status: resolved
Priority: 0/
Queue: Devel-Declare

Owner: Nobody in particular
Requestors: zefram [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Received: from ( []) by (Postfix) with SMTP id C20FE19B81DB for <bug-Devel-Declare [...]>; Fri, 3 Jul 2009 11:27:57 -0400 (EDT)
Received: (qmail 12071 invoked by uid 103); 3 Jul 2009 15:27:56 -0000
Received: from ( by with QMQP; 3 Jul 2009 15:27:56 -0000
Received: from (HELO ( by (qpsmtpd/0.80) with ESMTP; Fri, 03 Jul 2009 08:27:50 -0700
Received: from zefram by with local (Exim 4.69 #1 (Debian)) id 1MMkfx-0007Kq-NN; Fri, 03 Jul 2009 16:27:45 +0100
Delivered-To: cpan-bug+Devel-Declare [...]
MIME-Version: 1.0
Subject: newline injection fail
X-Spam-Status: No, hits=0.0 required=8.0 tests=
Return-Path: <zefram [...]>
X-Original-To: bug-Devel-Declare [...]
Content-Disposition: inline
Date: Fri, 3 Jul 2009 16:27:45 +0100
X-Spam-Level: *
X-Virus-Checked: Checked by ClamAV on
Content-Type: multipart/mixed; boundary="BXVAT5kNtrzKuDFl"
Message-ID: <20090703152745.GA27573 [...]>
To: bug-Devel-Declare [...]
From: Zefram <zefram [...]>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Disposition: inline
X-RT-Original-Encoding: us-ascii
Content-Length: 425
Download (untitled) / with headers
text/plain 425b
The attached test script demonstrates a problem I've run into when attempting to inject code containing newlines from inside a D::D handler. The "single" test case, which doesn't involve newlines, works fine. The remaining test cases all result in syntax errors when normal parsing resumes. This only occurs when the injected newline is grammatically whitespace: a newline in an injected string literal works fine. -zefram
Content-Type: application/x-troff
content-disposition: attachment; filename="inject_newline.t"
Content-Transfer-Encoding: quoted-printable
Content-Length: 2173
Download inject_newline.t
text/x-perl 2.1k

Message body is not shown because sender requested not to inline it.

MIME-Version: 1.0
In-Reply-To: <20090703152745.GA27573 [...]>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <20090703152745.GA27573 [...]>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-17370-1328128335-26.47545-0-0 [...]>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 151
Download (untitled) / with headers
text/plain 151b
Upon closer inspection, it looks like injecting newlines *can't* work, in the general case. toke.c hatehatehate. Documented in the next D:D release.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to