[Commits] [SCM] claws branch, master, updated. 3.17.3-129-gbf12f9d
ticho at claws-mail.org
ticho at claws-mail.org
Sat Mar 9 21:23:19 CET 2019
The branch, master has been updated
via bf12f9db42b654c77c537a68796949963bb76f4a (commit)
from f9c17d6035dd404039041d1d1d210b5ecf1abc0c (commit)
Summary of changes:
src/procmime.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
- Log -----------------------------------------------------------------
commit bf12f9db42b654c77c537a68796949963bb76f4a
Author: Andrej Kacian <ticho at claws-mail.org>
Date: Sat Mar 9 21:22:34 2019 +0100
Add a forgotten fclose() call
Fixes CID 1443021.
diff --git a/src/procmime.c b/src/procmime.c
index 6c682a6..6bcf5bb 100644
--- a/src/procmime.c
+++ b/src/procmime.c
@@ -2692,7 +2692,12 @@ void *procmime_get_part_as_string(MimeInfo *mimeinfo,
length = mimeinfo->length;
data = g_malloc(null_terminate ? length + 1 : length);
- cm_return_val_if_fail(data != NULL, NULL);
+ if (data == NULL) {
+ g_warning("Could not allocate %d bytes for procmime_get_part_as_string.\n",
+ (null_terminate ? length + 1 : length));
+ claws_fclose(infp);
+ return NULL;
+ }
readlength = claws_fread(data, length, 1, infp);
if (readlength <= 0) {
-----------------------------------------------------------------------
hooks/post-receive
--
Claws Mail
More information about the Commits
mailing list