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

People
Owner: Nobody in particular
Requestors: zefram [...] fysh.org
Cc:
AdminCc:

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



Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by diesel.bestpractical.com (Postfix) with SMTP id C20FE19B81DB for <bug-Devel-Declare [...] rt.cpan.org>; 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 x16.dev (10.0.100.26) by x1.dev with QMQP; 3 Jul 2009 15:27:56 -0000
Received: from pond.fysh.org (HELO pond.fysh.org) (166.84.7.109) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Fri, 03 Jul 2009 08:27:50 -0700
Received: from zefram by pond.fysh.org 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 [...] diesel.bestpractical.com
MIME-Version: 1.0
Subject: newline injection fail
X-Spam-Status: No, hits=0.0 required=8.0 tests=
Return-Path: <zefram [...] fysh.org>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-Devel-Declare [...] rt.cpan.org
Content-Disposition: inline
Date: Fri, 3 Jul 2009 16:27:45 +0100
X-Spam-Level: *
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
Content-Type: multipart/mixed; boundary="BXVAT5kNtrzKuDFl"
Message-ID: <20090703152745.GA27573 [...] fysh.org>
To: bug-Devel-Declare [...] rt.cpan.org
From: Zefram <zefram [...] fysh.org>
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 [...] fysh.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <20090703152745.GA27573 [...] fysh.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-17370-1328128335-26.47545-0-0 [...] rt.cpan.org>
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 Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.