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
broken regex behavior for strings produced by decrypt from Crypt::Rijndael #9549
Comments
From vvv@vsu.ruCreated by vvv@vsu.ruin the below test file, the string $plain is produced by the decrypt method it may be caused by Crypt::Rijndael, but in any case it looks like perl's core ############################################################################# use strict; my $encrypted = pack("H*","89bc70c0c151354857d0fe5d2976fc36"); Perl Info
|
From @nwc10Thanks for the bug report. On Fri, Oct 31, 2008 at 12:47:51AM -0700, vvv@vsu.ru (via RT) wrote:
Well, it is caused by Crypt::Rijndael, but arguably also the core is broken. As you may already know, internally perl stores strings as a buffer of bytes, If I tweak your test slighty, I get the following: $ cat ~/test/60246_tweaked use strict; my $encrypted = pack("H*","89bc70c0c151354857d0fe5d2976fc36"); Dump ($plain); $plain .= ''; Dump ($plain); $ ~/Sandpit/588/bin/perl ~/test/60246_tweaked The first pair of dumps show that Crypt::Rijndael has returned a scalar I tweaked the test case to append an empty string. This has the effect of So Crypt::Rijndael needs fixing to add the "\0" in to make well formed But also, the core regexp engine needs fixing, as it should be doing Nicholas Clark |
The RT System itself - Status changed from 'new' to 'open' |
From @cpansproutFixed by 7016d6e. |
@cpansprout - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#60246 (status was 'resolved')
Searchable as RT60246$
The text was updated successfully, but these errors were encountered: