summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorWolfgang Laun <Wolfgang.Laun@alcatel.at>2001-11-26 20:56:32 +0100
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-27 00:08:23 +0000
commit3bf38418777094bb685265138234ab6e04aa1d90 (patch)
tree95f4dfb7d73489209146c2dfa2b08ea748e47dc9 /pp_pack.c
parent52a55424e4624fc79eb8894fb91c5e2f4a9018ab (diff)
downloadperl-3bf38418777094bb685265138234ab6e04aa1d90.tar.gz
unpack P* uses random length for item
Message-ID: <200111261956320450.01E7217F@smtp.chello.at> p4raw-id: //depot/perl@13288
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_pack.c b/pp_pack.c
index 705ee12fc7..ceb01c5a57 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -922,6 +922,8 @@ PP(pp_unpack)
}
break;
case 'P':
+ if (star)
+ DIE(aTHX_ "P must have an explicit size");
EXTEND(SP, 1);
if (sizeof(char*) > strend - s)
break;