[DTrace-devel] [PATCH 2/6] fixup! alloca: track alloca()ed allocations
Nick Alcock
nick.alcock at oracle.com
Thu Mar 24 00:45:07 UTC 2022
Consistency improvement: no negative consequences.
---
libdtrace/dt_parser.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libdtrace/dt_parser.c b/libdtrace/dt_parser.c
index 0be4c66ca441..06bb0a87e201 100644
--- a/libdtrace/dt_parser.c
+++ b/libdtrace/dt_parser.c
@@ -2955,7 +2955,8 @@ dt_xcook_ident(dt_node_t *dnp, dt_idhash_t *dhp, uint_t idkind, int create)
* not a kind of assignment, so we should not turn on NONALLOCA
* here.
*/
- if (dnp->dn_flags & DT_NF_ALLOCA)
+ if ((idp->di_flags & DT_IDFLG_ALLOCA) ||
+ (dnp->dn_flags & DT_NF_ALLOCA))
dt_cook_taint_alloca(dnp, idp, NULL);
dt_node_attr_assign(dnp, attr);
--
2.35.1.261.g8402f930ba.dirty
More information about the DTrace-devel
mailing list