diff options
author | bstrand@switchmanagement.com <bstrand@switchmanagement.com> | 2005-04-12 19:12:58 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-04-14 16:13:45 +0000 |
commit | d09ad8562457f47cb9b12ff500929b3f4d67a07e (patch) | |
tree | 4a57333e892ea847b1aa72a9432644c867014feb /op.c | |
parent | df35152e63ab1003da75eded38490691ff18b6c6 (diff) | |
download | perl-d09ad8562457f47cb9b12ff500929b3f4d67a07e.tar.gz |
Fix for:
[perl #34934] perl 5.8.5 on x86 and x86-64 hang at compile-time
From: bstrand@switchmanagement.com (via RT) <perlbug-followup@perl.org>
Message-ID: <rt-3.0.11-34934-110595.15.9181274318682@perl.org>
This syntax error now produces a panic message.
p4raw-id: //depot/perl@24237
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -5575,6 +5575,8 @@ Perl_ck_grep(pTHX_ OP *o) OP* k; o = ck_sort(o); kid = cLISTOPo->op_first->op_sibling; + if (!cUNOPx(kid)->op_next) + Perl_croak(aTHX_ "panic: ck_grep"); for (k = cUNOPx(kid)->op_first; k; k = k->op_next) { kid = k; } |