-
Notifications
You must be signed in to change notification settings - Fork 571
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
Core dump with obfuscated code #346
Comments
From mgomes@cwix.comThis is some sort of RSA codec I picked up somewhere, don't ask me how it $ perl rsa.pl |
From [Unknown Contact. See original ticket]Brian Keefer writes:
Perl compiles the code just fine, the problem is in executing. In $m=unpack(H.$w,$m."\0"x$w); $w is set to a very large number, equal to -2 as a signed 32-bit Here's a patch to Perl to catch such things. It adds another error, Nat *** pp.c~ Mon Aug 2 14:25:07 1999 |
From [Unknown Contact. See original ticket]It looks from here like your perl is built without -DDEBUGGING in This isn't too surprising, since that code (after fixing up the -- |
From [Unknown Contact. See original ticket]On Thu, 5 Aug 1999 23:01:51 -0600 (MDT), Nathan Torkington wrote (in part): Nat> Perl compiles the code just fine, the problem is in Nat> $m=unpack(H.$w,$m."\0"x$w); Nat> $w is set to a very large number, equal to -2 as a signed That's funny--my tests never got to the unpack. They crapped out with read(STDIN,$m,($w=2*$d-1+length($n)&~1)/2) which attempted a read of C<2147483647> bytes. I guess it must ($w was indeed set to C<4294967294>, which is C<-2> when stored in an I32.) |
From [Unknown Contact. See original ticket]Nathan Torkington <gnat@frii.com> wrote
Good patch, but delete that "32-bit" (in two places). Not all Mike Guy |
From @jhiM.J.T. Guy writes:
I did that deletion when I applied the patch. -- |
From [Unknown Contact. See original ticket]M.J.T. Guy writes:
So because len is an I32 doesn't mean that it's necessarily a 32-bit Modified patch follows. Nat *** pp.c~ Mon Aug 2 14:25:07 1999 |
From @doughera88On Fri, 6 Aug 1999, Nathan Torkington wrote:
Quoting myself in handy.h: /* XXX A note on the perl source internal type system. The Currently, we only guarantee that I32 is *at least* 32 bits. There is no guarantee that there is *any* integral type with Similarly, there is no guarantee that I16 and U16 have exactly 16 Andy Dougherty doughera@lafayette.edu |
From @jhiNathan Torkington writes:
Yes, that is the case. -- |
Migrated from rt.perl.org#1179 (status was 'resolved')
Searchable as RT1179$
The text was updated successfully, but these errors were encountered: