Skip to content

Commit

Permalink
Add comments to taint_env, taint_proper
Browse files Browse the repository at this point in the history
One is supposed to access this functionality only through the documented
uppercase-named macros.
  • Loading branch information
khwilliamson committed Jun 5, 2022
1 parent cc98b54 commit f50027f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion taint.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ Implements the L</TAINT_PROPER> macro, which you should generally use instead.
void
Perl_taint_proper(pTHX_ const char *f, const char *const s)
{
/* Output a tainting violation, croaking unless we're just to warn.
/* Don't use directly; instead use TAINT_PROPER
*
* Output a tainting violation, croaking unless we're just to warn.
* '_proper' is just to throw you off the scent */

#if defined(HAS_SETEUID) && defined(DEBUGGING)
Expand Down Expand Up @@ -95,6 +97,8 @@ Implements the L</TAINT_ENV> macro, which you should generally use instead.
void
Perl_taint_env(pTHX)
{
/* Don't use directly; instead use TAINT_ENV */

SV** svp;
const char* const *e;
static const char* const misc_env[] = {
Expand Down

0 comments on commit f50027f

Please sign in to comment.