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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -