summaryrefslogtreecommitdiff
path: root/x11-libs/libfm/files/libfm-fix-use-after-free.diff
diff options
context:
space:
mode:
authorGhiunhan Mamut <V3n3RiX@users.noreply.github.com>2018-04-22 23:14:49 +0100
committerGitHub <noreply@github.com>2018-04-22 23:14:49 +0100
commit3ce68add3aa3245f0bdaa225802ce8aaea071fae (patch)
tree4c6fed681ef216c4043b29cfff30d389e463cc82 /x11-libs/libfm/files/libfm-fix-use-after-free.diff
parent5058d152d6717b56e5838c859d7590fd74d87e38 (diff)
parentbed9fb923f6cc27b39b2277bbc7832126e761b1c (diff)
Merge pull request #1 from stratact/master
Update pcmanfm, libfm.Import and update libfm-extra
Diffstat (limited to 'x11-libs/libfm/files/libfm-fix-use-after-free.diff')
-rw-r--r--x11-libs/libfm/files/libfm-fix-use-after-free.diff23
1 files changed, 0 insertions, 23 deletions
diff --git a/x11-libs/libfm/files/libfm-fix-use-after-free.diff b/x11-libs/libfm/files/libfm-fix-use-after-free.diff
deleted file mode 100644
index 4a0ae61c..00000000
--- a/x11-libs/libfm/files/libfm-fix-use-after-free.diff
+++ /dev/null
@@ -1,23 +0,0 @@
-diff -Naur libfm-1.2.3/src/base/fm-config.c libfm-1.2.3-fix-uaf-new2/src/base/fm-config.c
---- libfm-1.2.3/src/base/fm-config.c 2014-10-14 18:29:21.000000000 +0200
-+++ libfm-1.2.3-fix-uaf-new2/src/base/fm-config.c 2016-06-18 18:23:35.721837971 +0200
-@@ -346,7 +346,8 @@
- cfg->modules_blacklist = NULL;
- cfg->system_modules_blacklist = NULL;
- _cfg_monitor_free(cfg);
-- g_free(cfg->_cfg_name);
-+ if(name != cfg->_cfg_name)
-+ g_free(cfg->_cfg_name);
- if(G_LIKELY(!name))
- name = "libfm/libfm.conf";
- else
-@@ -363,7 +364,8 @@
- }
- }
-
-- cfg->_cfg_name = g_strdup(name);
-+ if(name != cfg->_cfg_name)
-+ cfg->_cfg_name = g_strdup(name);
- dirs = g_get_system_config_dirs();
- /* bug SF #887: first dir in XDG_CONFIG_DIRS is the most relevant
- so we shoult process the list in reverse order */