summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-03-19 03:15:58 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-03-19 03:15:58 +0000
commit41d6edb2c1acac32a0296d594f0943752d23f077 (patch)
tree66ec857b54096fa525d2f4fa3f1741b9f8f9462e /doio.c
parentd929ce6fe8f415355968ae904607a49f36ad5c70 (diff)
downloadperl-41d6edb2c1acac32a0296d594f0943752d23f077.tar.gz
Taint msgrcv() messages; general SysV IPC cleanup.
p4raw-id: //depot/cfgperl@5812
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 0247cb962e..0121633c84 100644
--- a/doio.c
+++ b/doio.c
@@ -1926,6 +1926,10 @@ Perl_do_msgrcv(pTHX_ SV **mark, SV **sp)
if (ret >= 0) {
SvCUR_set(mstr, sizeof(long)+ret);
*SvEND(mstr) = '\0';
+#ifndef INCOMPLETE_TAINTS
+ /* who knows who has been playing with this message? */
+ SvTAINTED_on(mstr);
+#endif
}
return ret;
#else