c - GCC - Linux - Set the stack to zero before returning? -
context
linux 64 bits
question
is possible instruct stack zeroed before returning function ?
i want not valid information left on stack, if overwritten right after other values. explicitly want waste time doing so.
is possible in automated manner that cannot bypassed when compiled in controlled environment ?
thanks
one way use "-finstrument-functions" option. allows hook in entry , exit function each regular function call entry , exit. clear stack in exit hook. name suggests intended instrumentation. nothing stop using other purposes.
Comments
Post a Comment