projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0f4466
)
Added NULL parameter check for unmime_header().
author
Andrej Kacian
<ticho@claws-mail.org>
Fri, 16 Nov 2018 19:50:32 +0000
(20:50 +0100)
committer
Andrej Kacian
<ticho@claws-mail.org>
Fri, 16 Nov 2018 19:51:18 +0000
(20:51 +0100)
src/common/unmime.c
patch
|
blob
|
history
diff --git
a/src/common/unmime.c
b/src/common/unmime.c
index 424bde99a856a271b16cae5e260589f12eb04ba5..65d83ae510617209870689ec1444032451c9b898 100644
(file)
--- a/
src/common/unmime.c
+++ b/
src/common/unmime.c
@@
-48,6
+48,8
@@
gchar *unmime_header(const gchar *encoded_str, gboolean addr_field)
gsize out_len;
int in_quote = FALSE;
+ cm_return_val_if_fail(encoded_str != NULL, NULL);
+
outbuf = g_string_sized_new(strlen(encoded_str) * 2);
while (*p != '\0') {