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
Errno.pm must not pass references to "prototype" #7558
Comments
From qleah@earthlink.netThis is a bug report for perl from qleah@earthlink.net, Errno.pm must not trust the user to pass only valid sub references via perl -MErrno -e 'exists $!{[]}' Not a subroutine reference at Flags: |
From @rgsLeah (via RT) wrote:
Thanks for the report, this has been fixed by change #23423 to the Change 23424 by rgs@valis on 2004/10/25 15:31:21 Fix [perl #32130] Errno.pm must not pass references to "prototype" Affected files ... ... //depot/perl/ext/Errno/Errno_pm.PL#39 edit Differences ... ==== //depot/perl/ext/Errno/Errno_pm.PL#39 (text) ==== @@ -377,7 +377,8 @@ sub EXISTS { ==== //depot/perl/ext/Errno/t/Errno.t#3 (xtext) ==== @@ -13,7 +13,7 @@ use Errno; -print "1..5\n"; print "not " unless @Errno::EXPORT_OK; print "ok 5\n"; |
The RT System itself - Status changed from 'new' to 'open' |
@rgs - Status changed from 'open' to 'resolved' |
From @gbarrOn 25 Oct 2004, at 17:57, Rafael Garcia-Suarez wrote:
I don't think it should allow passing of code references. It was a my $proto = ref($errname) || prototype($errname); should be sufficient because any reference would then cause the
Graham. |
Migrated from rt.perl.org#32130 (status was 'resolved')
Searchable as RT32130$
The text was updated successfully, but these errors were encountered: