]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
linux-user/signal.c: Avoid using uninitialized data in ARM sigreturn
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Jul 2013 11:00:32 +0000 (12:00 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 30 Jul 2013 00:56:52 +0000 (19:56 -0500)
commit978fae9f1ac47e22890a1bd9ebf5fa46fe8b6ef7
tree84acd528b862faa5b61f2f6888349691274442ee
parentb04636f8665a9492143529340eab4450d492d2ee
linux-user/signal.c: Avoid using uninitialized data in ARM sigreturn

Rephrase code used in ARM sigreturn functions to avoid using
uninitialized variables. This fixes one genuine problem ('frame'
would not be initialized if we took the error-exit path because
our stackpointer was misaligned) and one which is clang being
alarmist (frame_addr wouldn't be initialized, though this is
harmless since unlock_user_struct ignores its second argument
in these cases; however since we don't generally make use of
this not-really-documented effect it's better avoided).

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1375095632-13735-3-git-send-email-peter.maydell@linaro.org
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
linux-user/signal.c