From: Heiko Schlittermann (HS12-RIPE) Date: Wed, 2 Mar 2016 16:25:01 +0000 (+0100) Subject: Use right type casts in string_compare_by_pointer X-Git-Tag: exim-4_87_RC5^0 X-Git-Url: https://git.exim.org/users/heiko/exim.git/commitdiff_plain/refs/remotes/hs12/fix-CVE-2016-1531 Use right type casts in string_compare_by_pointer --- diff --git a/src/src/string.c b/src/src/string.c index be5a8deda..e0e0fa5ae 100644 --- a/src/src/string.c +++ b/src/src/string.c @@ -1715,7 +1715,7 @@ pointers. Here it is. */ int string_compare_by_pointer(const void *a, const void *b) { -return Ustrcmp(CUSS *(const char**) a, CUSS *(const char**) b); +return Ustrcmp(* CUSS a, * CUSS b); } #endif /* COMPILE_UTILITY */