-
Notifications
You must be signed in to change notification settings - Fork 561
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
uninitialized lex as filehandle segmentation fault #780
Comments
From [email protected]Using an unitialized lexical as a filehandle can result in in pp_rv2gv in pp.c This code creates an sv with a zero SvPVX. Later on, in S_pad_findlex in op.c, if ((sv = svp[off]) && skimo Perl Info
|
From [Unknown Contact. See original ticket]<skimo@pool.gv.kotnet.org> writes:
Hmm, guilty as charged :-( The "fix" for the "handling stolen goods" charge is easy - check for NULL The idea was that when vivifying file handles we give them a name so that
|
From [Unknown Contact. See original ticket]On Sun, Oct 24, 1999 at 10:43:32PM +0100, Nick Ing-Simmons wrote:
Well, the code looks something like sub { I haven't been able to strip my program down to just the code I can of course do some further debugging if you can tell me skimo |
From [Unknown Contact. See original ticket]Sven Verdoolaege <skimo@kotnet.org> writes:
That is exactly the case this is supposed to handle. Sarathy - I will check-in code that tests for NULL. Meanwhile can other p5p folk tell me when this can occur? -- |
From [Unknown Contact. See original ticket]Sven Verdoolaege <skimo@kotnet.org> writes:
Attached is the patch corresponding to the change I just made to the -- |
From [Unknown Contact. See original ticket] |
From [Unknown Contact. See original ticket]On Sun, Oct 24, 1999 at 11:13:17PM +0100, Nick Ing-Simmons wrote:
Inline Patch--- perl/pp.c.~1~ Sun Oct 24 22:10:16 1999
+++ perl/pp.c Sun Oct 24 22:10:16 1999
@@ -245,8 +245,14 @@
STRLEN len = 0;
char *name = "";
if (cUNOP->op_first->op_type == OP_PADSV) {
- SV *padname = *av_fetch(PL_comppad_name,
How is that supposed to help. skimo |
From [Unknown Contact. See original ticket]Sven Verdoolaege <skimo@kotnet.org> writes:
That was extra check while I was there.
Okay - I understand the problem a bit better. But I do not see how Now I am out of my depth - the SVs that S_pad_findlex() scan are special. The question is what created the "unamed" PADSV in the first place,
That was just more extra-safety.
|
From [Unknown Contact. See original ticket]On Mon, Oct 25, 1999 at 01:09:52AM +0100, Nick Ing-Simmons wrote:
Maybe I should've mentioned that the av entry didn't exist. skimo |
From @gsarOn Mon, 25 Oct 1999 01:09:52 BST, Nick Ing-Simmons wrote:
I'm rather circumspect about groping through PL_comppad_name My guess would be free_closures() is what's biting you. Sarathy |
Migrated from rt.perl.org#1705 (status was 'resolved')
Searchable as RT1705$
The text was updated successfully, but these errors were encountered: