commit | 0313b1e9a9e2bf6950af3b6846225f906b2fc12e | [log] [tgz] |
---|---|---|
author | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Mon Nov 19 14:54:09 2007 +0000 |
committer | sewardj <sewardj@a5019735-40e9-0310-863c-91ae7b9d1cf9> | Mon Nov 19 14:54:09 2007 +0000 |
tree | 026814d98176838122f76f17e81a8218ce418159 | |
parent | de0c80607176ddac73c787c6e0d229dab65ba670 [diff] |
Zero out the vki_user_regs_struct before using it. Otherwise, we end up passing uninitialised garbage on the stack to ptrace(SETREGS, ...) for any fields in the struct which are not filled in. This does not fix any known bugs, but seems like a good precautionary measure. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7187 a5019735-40e9-0310-863c-91ae7b9d1cf9