develooper Front page | perl.perl5.porters | Postings from February 2018

Re: [perl #132828] Tricky code can bypass Carp overload protectionsand trigger exceptions

Thread Next
From:
demerphq
Date:
February 23, 2018 09:33
Subject:
Re: [perl #132828] Tricky code can bypass Carp overload protectionsand trigger exceptions
Message ID:
CANgJU+U-K4oAVOMsZH8DkvBAKUF+LBkPELvp7vYP_80u05qV+g@mail.gmail.com
On 7 February 2018 at 22:09, demerphq <demerphq@gmail.com> wrote:
> On 7 February 2018 at 21:56, yves orton <perlbug-followup@perl.org> wrote:
>> # New Ticket Created by  yves orton
>> # Please include the string:  [perl #132828]
> Simplifies to:
>
> perl -MCarp -E 'my $p = "OverloadedInXS"; *{$p."::(("} = sub{};
> *{$p.q!::(""!} = sub { Carp::cluck "<My Stringify>" }; sub {
> Carp::cluck("") }->(bless {}, $p);'

Fixed in c99363aa273278adcad39f32026629b700f9bbc3

Please don't close the ticket until i can push a patch for testing.

thanks,
Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About