From: Mario Rugiero <mrugi...@gmail.com>

This one is actually rather easy to trigger:
1_ In section [ui] of the config, set the field saved_search so it matches:
   [0-9a-fA-f]\&[^\&]$
2_ Launch file search on PCManFM.
3_ Watch it crash.

For quick validation, I used the string "405&a" to test it.
---
 src/gtk/fm-gtk-file-launcher.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gtk/fm-gtk-file-launcher.c b/src/gtk/fm-gtk-file-launcher.c
index 5e7cde9..3eb08a4 100644
--- a/src/gtk/fm-gtk-file-launcher.c
+++ b/src/gtk/fm-gtk-file-launcher.c
@@ -960,7 +960,7 @@ gboolean fm_launch_search_simple(GtkWindow* parent, 
GAppLaunchContext* ctx,
         }
         else
             mask = expr = g_strdup(c);
-        if (*mask == '/') /* else corrupted */
+        if (mask && *mask == '/') /* else corrupted */
         {
             mask++;
             c = strchr(mask, '/');
-- 
2.17.1



_______________________________________________
Lxde-list mailing list
Lxde-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxde-list

Reply via email to