]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Zero out the vki_user_regs_struct before using it. Otherwise, we end
authorJulian Seward <jseward@acm.org>
Mon, 19 Nov 2007 14:54:09 +0000 (14:54 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 19 Nov 2007 14:54:09 +0000 (14:54 +0000)
commit04ac736514f5a45a1661b5525a0a649eec5feb47
tree026814d98176838122f76f17e81a8218ce418159
parent68c313c7f7eae0b521329319ab1e8afc750d0f0e
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
coregrind/m_debugger.c