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
Scalar leaked in 'local $0' under ithreads + taint mode #7826
Comments
From stas@stason.orgCreated by stas@rabbit.stason.orgThe following scalar leak is reproduced under any perl 5.8+ w/ithreads: #!/usr/bin/perl -T local $0 = "test"; # <== XXX: leaks scalar % perl -T leak.pl Scalars leaked: 1 As the dump shows that leaked scalar is MG_OBJ = 0x816dc1c. This magic It happens so that ModPerl::Registry localizes $0, so anybody trying to Perl Info
|
From stas@stason.org(resubmitting Steve Hay's followup so it'll be stored in rt) Stas Bekman (via RT) wrote:
From: Steve Hay <steve.hay@uk.radan.com> Is this anything to do with the following comment found in /* XXX SvMAGIC() is *shared* between osv and sv. This can There's certiainly some stuff to do with taint magic and localizing I'm not sure what the following chunk from that function is trying to if (PL_tainting && PL_tainted && but could it be related to the leaked MG_OBJ? - Steve |
From @iabynLooks like the leak has been fixed by my change #24942, which fixed |
@iabyn - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#34341 (status was 'resolved')
Searchable as RT34341$
The text was updated successfully, but these errors were encountered: