[Commits] [SCM] claws branch, gtk3, updated. 4.0.0-295-gb69c0c073
wwp at claws-mail.org
wwp at claws-mail.org
Mon Oct 4 10:39:42 CEST 2021
The branch, gtk3 has been updated
via b69c0c073f0d257bd49eb17691f1e9959395d66c (commit)
from d006355369916eefff3d964d4606e183339418aa (commit)
Summary of changes:
src/prefs_filtering.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
- Log -----------------------------------------------------------------
commit b69c0c073f0d257bd49eb17691f1e9959395d66c
Author: wwp <subscript at free.fr>
Date: Mon Oct 4 10:39:08 2021 +0200
Fix (in a better way) CID 1491324: use after free.
diff --git a/src/prefs_filtering.c b/src/prefs_filtering.c
index f5dc326cf..885f94441 100644
--- a/src/prefs_filtering.c
+++ b/src/prefs_filtering.c
@@ -776,13 +776,15 @@ static void delete_path(GSList ** p_filters, const gchar * path)
prefixlen = destlen - pathlen;
suffix = action->destination + prefixlen;
- if (suffix && !strncmp(path, suffix, pathlen)) {
+ if ((suffix && !strncmp(path, suffix, pathlen)) && filtering) {
filters = g_slist_remove(filters, filtering);
filteringprop_free(filtering);
+ filtering = NULL;
}
- } else if (strcmp(action->destination, path) == 0) {
+ } else if ((strcmp(action->destination, path) == 0) && filtering) {
filters = g_slist_remove(filters, filtering);
filteringprop_free(filtering);
+ filtering = NULL;
}
}
}
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list