]> Git Repo - qemu.git/commit - qga/commands-posix.c
qga/commands-posix: fix use after free of local_err
authorVladimir Sementsov-Ogievskiy <[email protected]>
Tue, 24 Mar 2020 15:36:30 +0000 (18:36 +0300)
committerMarkus Armbruster <[email protected]>
Sat, 4 Apr 2020 12:15:24 +0000 (14:15 +0200)
commit6a4a38530e70f3917a58d71d4d08e28bd8146015
tree760bc12e74b1c1efb0c829c6f24a6a1b232b7dd0
parentb0e709503cee6e30e62b35ef416a53531371c1a7
qga/commands-posix: fix use after free of local_err

local_err is used several times in guest_suspend(). Setting non-NULL
local_err will crash, so let's zero it after freeing. Also fix possible
leak of local_err in final if().

Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]>
Message-Id: <20200324153630[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Markus Armbruster <[email protected]>
qga/commands-posix.c
This page took 0.025379 seconds and 4 git commands to generate.