Fix invalid read 99/250799/3
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 4 Jan 2021 23:49:29 +0000 (08:49 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 5 Jan 2021 00:14:19 +0000 (09:14 +0900)
commite770b1fe9826a4392b6c8f48338af23ad03c2433
treedfb70201b6d44799610dd11cf6e679cdd6f16a51
parentad497b796a4f0b72b4e4f23ef4d7f43fc93ae363
Fix invalid read

If a stub handle is defined to a global variable, a process accesses to
the released DBusConnectionManager instance while calling the __run_exit_handlers().
The GDBusConnection instance is moved to the FdBroker object.

Change-Id: I6040a9737f5b23c644f91eccb330b6aba4104ac0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/fdbroker-internal.cc
src/fdbroker-internal.hh