summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-03-19 01:48:47 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-03-19 01:48:47 +0000
commitd929ce6fe8f415355968ae904607a49f36ad5c70 (patch)
tree55c5af0a110b532106f3395cc36541ef70d8358f /doio.c
parent2959b6e3384ea619841b1f9556846dd2755caf04 (diff)
downloadperl-d929ce6fe8f415355968ae904607a49f36ad5c70.tar.gz
Taint shmread().
p4raw-id: //depot/cfgperl@5811
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/doio.c b/doio.c
index e22902f23a..0247cb962e 100644
--- a/doio.c
+++ b/doio.c
@@ -1994,6 +1994,10 @@ Perl_do_shmio(pTHX_ I32 optype, SV **mark, SV **sp)
SvCUR_set(mstr, msize);
*SvEND(mstr) = '\0';
SvSETMAGIC(mstr);
+#ifndef INCOMPLETE_TAINTS
+ /* who knows who has been playing with this shared memory? */
+ SvTAINTED_on(mstr);
+#endif
}
else {
I32 n;