Skip Menu |

This queue is for tickets about the Term-ReadLine-Perl CPAN distribution.

Report information
The Basics
Id: 59194
Status: open
Priority: 0/
Queue: Term-ReadLine-Perl

People
Owner: Nobody in particular
Requestors: spoon.reloaded [...] gmail.com
Cc:
AdminCc:

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



Subject: eval() should be changed to hex() and oct()
} elsif ($key =~ s#^\\x([0-9a-fA-F]{2})##) { push(@keys, eval('0x'.$1)); } elsif ($key =~ s#^\\([0-7]{3})##) { push(@keys, eval('0'.$1)); should be changed to } elsif ($key =~ s#^\\x([0-9a-fA-F]{2})##) { push(@keys, hex($1)); } elsif ($key =~ s#^\\([0-7]{3})##) { push(@keys, oct($1)); because eval is dangerous
CC: undisclosed-recipients: ;
Subject: Re: [rt.cpan.org #59194] eval() should be changed to hex() and oct()
Date: Thu, 8 Jul 2010 23:27:26 -0700
To: "https://launchpad.net/~newacct via RT" <bug-Term-ReadLine-Perl [...] rt.cpan.org>
From: Ilya Zakharevich <nospam-abuse [...] ilyaz.org>
On Thu, Jul 08, 2010 at 01:41:20AM -0400, https://launchpad.net/~newacct via RT wrote: Show quoted text
> Thu Jul 08 01:41:19 2010: Request 59194 was acted upon. > Transaction: Ticket created by https://launchpad.net/~newacct > Queue: Term-ReadLine-Perl > Subject: eval() should be changed to hex() and oct() > Broken in: 1.0303 > Severity: Unimportant > Owner: Nobody > Requestors: spoon.reloaded@gmail.com > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=59194 > > > > } elsif ($key =~ s#^\\x([0-9a-fA-F]{2})##) { > push(@keys, eval('0x'.$1)); > } elsif ($key =~ s#^\\([0-7]{3})##) { > push(@keys, eval('0'.$1)); > should be changed to > } elsif ($key =~ s#^\\x([0-9a-fA-F]{2})##) { > push(@keys, hex($1)); > } elsif ($key =~ s#^\\([0-7]{3})##) { > push(@keys, oct($1));
Agreed. Show quoted text
> because eval is dangerous
No, not in this context. So please send a TESTED patch. Thanks, Ilya