Use right type casts in string_compare_by_pointer fix-CVE-2016-1531 hs12/fix-CVE-2016-1531 origin/fix-CVE-2016-1531 security/fix-CVE-2016-1531 exim-4_87_RC5
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Wed, 2 Mar 2016 16:25:01 +0000 (17:25 +0100)
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>
Wed, 2 Mar 2016 16:25:01 +0000 (17:25 +0100)
src/src/string.c

index be5a8deda633965ad33300b716352278e3374a83..e0e0fa5ae536db9a0294e8373ecf77c643e69f81 100644 (file)
@@ -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 */