New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Safe.pm problem when regex does an implicit 'use utf8' #9123
Comments
From greg@turnstep.comUsing Safe.pm uncovered an implicit 'use utf8' when a regex Sample program, using perl 5.8.8: #!perl use strict; my $cmp = new Safe; $cmp->reval('/ać/i'); printf $cmp->reval('/ac/i'); printf __DATA__ ## Output is: Error was 'require' trapped by operation mask at (eval 2) line 1. Okay Flags: |
From @eserteGreg Sabino Mullane (via RT) <perlbug-followup@perl.org> writes:
This still fails with perl5.10.0 RC1. For a workaround, throw something into your code which triggers qr{\x{0100}}i; Note that the unicode codepoint must be 0x100 or higher. Regards,
-- |
The RT System itself - Status changed from 'new' to 'open' |
From @rgsOn 18 Nov 2007 20:53:43 +0100, Slaven Rezic <slaven@rezic.de> wrote:
Another option would be to patch Safe so that it itself requires utf8 |
From @eserte"Rafael Garcia-Suarez" <rgarciasuarez@gmail.com> writes:
But hopefully only for 5.10.0? I think there are other possibilities Regards, -- tkrevdiff - graphical display of diffs between revisions (RCS, CVS or SVN) |
From @nwc10On Mon, Nov 19, 2007 at 09:59:59PM +0100, Slaven Rezic wrote:
Or patch the regexp engine to switch out of Safe when it saves state to
This would actually please me most. I'm not sure how much processing is Nicholas Clark |
From @eserteNicholas Clark <nick@ccl4.org> writes:
Could this be a security problem if somebody changes @INC? use lib sub { warn "@_" };
Regards, -- tktimex - time recording tool |
From @nwc10On Wed, Nov 21, 2007 at 09:51:19PM +0100, Slaven Rezic wrote:
Yes. Good point. Nicholas Clark |
From @khwilliamsonThis was fixed by commit 9006651 [perl #72942] Can't perform unicode operations in Safe compartment -- |
From [Unknown Contact. See original ticket]This was fixed by commit 9006651 [perl #72942] Can't perform unicode operations in Safe compartment -- |
@khwilliamson - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#47576 (status was 'resolved')
Searchable as RT47576$
The text was updated successfully, but these errors were encountered: