X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=doio.c;h=0121633c84bd59b30e7d6e55394650f51770be5f;hb=83bb2f05018534d7d0cc69340baccd0359dfcdf2;hp=e22902f23a64633f33f97d45f8b97e787180cf9d;hpb=e6f0bdd6fa05a6e9d3d4ecdbe97bd8dd3feaa022;p=p5sagit%2Fp5-mst-13.2.git diff --git a/doio.c b/doio.c index e22902f..0121633 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 @@ -1994,6 +1998,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;