[Bug 1855963] bug in perl prevents bugzilla checksetup.pl script from working

2020-07-13 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1855963

Petr Pisar  changed:

   What|Removed |Added

   Doc Type|--- |If docs needed, set a value



--- Comment #1 from Petr Pisar  ---
The Perl bug is still open and the fix was not merged into Perl sources.
Bugzilla bug is closed.
Can you please provide a minimal Perl reproducer that does not involve
installing Bugzilla?


-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org


[Bug 1855963] bug in perl prevents bugzilla checksetup.pl script from working

2020-07-13 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1855963



--- Comment #2 from Sjoerd Mullender  ---
I can't provide a reproducer.  I haven't done any serious Perl programming
since about 1988 and have no intention of starting now.
A simple google search on utf8::SWASHNEW shows quite a few instances of this
problem, but they all involve checksetup.pl in bugzilla.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org


[Bug 1855963] bug in perl prevents bugzilla checksetup.pl script from working

2020-07-13 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1855963

Petr Pisar  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED



--- Comment #3 from Petr Pisar  ---
I managed to minimize it; main.pl:

#!/usr/bin/perl
BEGIN {
require Safe;
Safe->new;
}
tr/\x{100}//;

$ perl main.pl 
Undefined subroutine utf8::SWASHNEW called at main.pl line 6.

It happens when a tr/// with a 255-above code point is compiled after creating
a Safe object. (Bugzilla checksetup.pl has "new Safe" in
Bugzilla::Install::Util::_get_string_from_file() and tr/// in Bugzilla::Util.)

In my opinion it's an unintended effect of the Safe implementation. Safe should
affect only a code ($unsafe_code) compiled (reval()) inside a Safe object
($compartment) as read in the documentation:

  use Safe;
  $compartment = new Safe;
  $compartment->permit(qw(time sort :browse));
  $result = $compartment->reval($unsafe_code);


-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org


[Bug 1855963] bug in perl prevents bugzilla checksetup.pl script from working

2020-07-13 Thread bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=1855963



--- Comment #4 from Petr Pisar  ---
perl-libs-5.30.3-452.fc31 is affected.
perl-libs-5.32.0-456.fc33 is not affected, because utf8_heavy.pl whose loading
is prevented by Safe was removed in perl 5.31.6 and is not loaded anymore.
That's probably the reason why Perl upstream has never fixed it.


-- 
You are receiving this mail because:
You are on the CC list for the bug.
___
perl-devel mailing list -- perl-devel@lists.fedoraproject.org
To unsubscribe send an email to perl-devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/perl-devel@lists.fedoraproject.org