diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-04-18 02:09:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-04-18 02:09:05 +0100 |
commit | 664390e8fd3aa014cca600bd436870416fef5620 (patch) | |
tree | 7da76a78df2a5ee50c5deedf480acec8ceac8c17 /x11-libs/libfm/files | |
parent | 1ab55b49131d32972afb438a9380cc9edb147ce3 (diff) |
x11-libs/libfm : import from gentoo tree, add support for gtk3
Diffstat (limited to 'x11-libs/libfm/files')
-rw-r--r-- | x11-libs/libfm/files/libfm-fix-use-after-free.diff | 23 |
1 files changed, 23 insertions, 0 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 new file mode 100644 index 00000000..4a0ae61c --- /dev/null +++ b/x11-libs/libfm/files/libfm-fix-use-after-free.diff @@ -0,0 +1,23 @@ +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 */ |