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
SEGV with eval "use ..." and method call #1336
Comments
From @andkSorry if this is a duplicate, I sent a similar report with perlbug It's a long standing bug, the following code core dumps with perl -le ' zsh: segmentation fault (core dumped) I have reported this long time ago (no bug ID), you can find the old http://www.xray.mpe.mpg.de/cgi-bin/w3glimpse/perl5-porters?query=md5+addfile+hash&errors=0&case=on&maxfiles=100&maxlines=30 -- |
From @gsarOn 14 Mar 2000 10:08:54 +0100, Andreas J. Koenig wrote:
The C<new MD5> there is being parsed as a subroutine call new('MD5'). bless({},'MD5')->addfile(*FOO); MD5::addfile apparently doesn't like that uninitialized fake MD5 object Just never ever use the indirect object form with a bareword name. Sarathy |
From @gisleGurusamy Sarathy <gsar@ActiveState.com> writes:
This patch for Digest::MD5 should help, but it can still be made to perl -MMD5 -e '$a = 3333; $m = bless \$a, "MD5"; $m->add(*foo); print $m' since we will here try to access memory at address 3333 in order to To be real safe I think I would have to hide the pointer in magic. Perhaps the recommendations in perlxs for how to hide pointers to C Regards, Index: MD5.xsRCS file: /home/cvs/aas/perl/mods/md5/MD5.xs,v +#define MD5_CTX_SIGNATURE 200003165 /* This stucture keeps the current state of algorithm. static MD5_CTX* get_md5_ctx(SV* sv) |
From [Unknown Contact. See original ticket]
You want '~' magic, but no, there's no standard typemap for it or any -- "If I claimed I was emporer just cause some moistened bint lobbed a |
Migrated from rt.perl.org#2364 (status was 'resolved')
Searchable as RT2364$
The text was updated successfully, but these errors were encountered: