Fix invalid read
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 01:53:32 +0000 (10:53 +0900)
commit3aa69c8dd194faee5a0cf430d608c32f43543ad0
tree93c3a7c186e906bb144739a04ec6a22f1aed9ec5
parent40fd1b22fa899a093a07af8efe3fa1eaca2a8075
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.h