develooper Front page | perl.perl5.porters | Postings from March 2023

Re: PERL_RC_STACK branch: first cut

Thread Previous | Thread Next
From:
Dave Mitchell
Date:
March 1, 2023 14:01
Subject:
Re: PERL_RC_STACK branch: first cut
Message ID:
Y/9alEBXopdF2GtS@iabyn.com
On Wed, Mar 01, 2023 at 01:53:03PM +0100, demerphq wrote:
> Sereal::Encoder/Decoder do support custom opcode stuff but afaik they did
> not break. Not sure why yet. Is it expected that some such code would still
> be fine?

Any non-core PP function (called either via a custom OP or from a standard
perl OP where the op_ppaddr has been replaced with the user's PP function)
and which hasn't been wrapped nor updated will tend to:
   - leak any args passed to it;
   - have any values it returns be prematurely freed later;
due to the reference-count bookkeeping not being done.

-- 
Fire extinguisher (n) a device for holding open fire doors.

Thread Previous | 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