[DTrace-devel] [PATCH] cg: clear dnp->dn_tstring after freeing it

Kris Van Hees kris.van.hees at oracle.com
Mon Sep 18 15:32:17 UTC 2023


On Mon, Sep 18, 2023 at 11:22:49AM -0400, Eugene Loh via DTrace-devel wrote:
> Reviewed-by: Eugene Loh <eugene.loh at oracle.com>

Thanks.

> > We were freeing the dn_tstring (if any) on a node wothout actually
> > setting dn_tstring to NULL to prevent any further use.
> 
> s/wothout/without/

Thanks.

> Also, it'd be nice to include a test that illustrates the problem.

That alas is not possible because it isn't a problem unless there is a bug in
the cmmpiler, and right now there doesn't seem to be one that relates to this.
If anything, this will cause a problem if we mess up code somewhere, so it is
meant as a safeguard against potentiallu using a valued that is no longer
valid.

So, no test is possible.



More information about the DTrace-devel mailing list