talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 71e39607218b5801da5c30084633f821492b7c33
parent bf1a050d4e8f01b50086ac4a15e4537d70d452b4
Author: Andrej Kacian <ticho@claws-mail.org>
Date:   Fri,  1 Aug 2014 10:28:52 +0200

Add check for a NULL parameter to extract_address(), to prevent possible null pointer dereference.

Diffstat:
Msrc/common/utils.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/common/utils.c b/src/common/utils.c @@ -926,6 +926,7 @@ gchar *strchr_with_skip_quote(const gchar *str, gint quote_chr, gint c) void extract_address(gchar *str) { + cm_return_if_fail(str != NULL); eliminate_address_comment(str); if (strchr_with_skip_quote(str, '"', '<')) extract_parenthesis_with_skip_quote(str, '"', '<', '>');