Fix crash issue of app-defined-loader 89/294789/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 26 Jun 2023 22:11:55 +0000 (22:11 +0000)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 26 Jun 2023 22:11:55 +0000 (22:11 +0000)
commitae44d35a1eed6719db528d95f5911f8cdcc382a1
tree2837ecba504fccc93d9aabf0b6f2ed8e7a4f5ff8
parente8b91892fa0eb7cea7de5f62e18bed06aeaa04bc
Fix crash issue of app-defined-loader

The argument of Plugin::PrepareApp() should not be nullptr.
This patch modifies that the implementation of the Plugin::PrepareApp() allows
the empty string. If the argument is the empty string, the nullptr will be
passed to the plugin function.

Change-Id: I6bc62c496ab663965070af512b041928a98ec75e
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/app-defined-loader/app-defined-loader.cc
src/lib/launchpad-glib/plugin.cc