[Bug 1926835] Re: update-notifier crashes (bug spotted in source code)

2021-05-01 Thread Xu Zhongxing
if(cargv[0][0] == '/' && g_file_test(cargv[0], G_FILE_TEST_EXISTS|G_FILE_TEST_IS_EXECUTABLE)) { result = TRUE; g_debug_hooks("command exists"); goto out; // THIS IS EXECUTED } g_debug_hooks("'%s' is not a valid absolute path", cargv[0]); gchar **pathdirs = g_s

[Bug 1926835] [NEW] update-notifier crashes (bug spotted in source code)

2021-05-01 Thread Xu Zhongxing
Public bug reported: In the source code update-notifier_3.192.40.tar.xz, when there is file /var/lib/update-notifier/user.d/incomplete-language-support-gnome.note. In hooks.c, at line 108, when the file test is true, the program will execute "goto out" at line 112. Then at line 137, pathdirs is