[cfe-dev] idea: feature to force cleanup of freed stack/heap - useful enough?
Dennis Luehring
dl.soluz at gmx.net
Wed Oct 30 01:49:06 PDT 2013
it would be nice to have an clang feature to instrument cleanup freed
stack/heap space
with an defined bit pattern (0, 0xfff...,) - this way it would be easier
to find stack/heap missuse
before dtor end(exception chain) the object space will be nulled
before function/method/ctor end(exception chain) stack space will be nulled
before mallocs-free the allocated space is nulled (problematic when
using other librarys)
i little bit in the area of the addresssanitizer but should be faster,
but without the auto-detection of missuse
what do you think
More information about the cfe-dev
mailing list