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

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

Thread Previous
From:
demerphq
Date:
February 25, 2018 03:16
Subject:
Re: [perl #132828] Tricky code can bypass Carp overload protectionsand trigger exceptions
Message ID:
CANgJU+UcOcX3nXvG+Snh9XnbBaQ8nEaijJTygf+DAOkYbr72wg@mail.gmail.com
On 23 February 2018 at 10:33, demerphq <demerphq@gmail.com> wrote:
> 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.

Pushed as b20e410261372f568d77e3064b1b57886c331ece

Yves


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

Thread Previous


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