mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
util:charset:codepoints: condepoint_cmpi uses NUMERIC_CMP()
If these are truly unicode codepoints (< ~2m) there is no overflow, but the type is defined as uint32_t. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625 Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
d4ce8231f9
commit
675fdeee3d
@ -26,6 +26,7 @@
|
||||
#include "dynconfig/dynconfig.h"
|
||||
#include "lib/util/debug.h"
|
||||
#include "lib/util/byteorder.h"
|
||||
#include "lib/util/tsort.h"
|
||||
|
||||
#ifdef strcasecmp
|
||||
#undef strcasecmp
|
||||
@ -16483,7 +16484,7 @@ _PUBLIC_ int codepoint_cmpi(codepoint_t c1, codepoint_t c2)
|
||||
toupper_m(c1) == toupper_m(c2)) {
|
||||
return 0;
|
||||
}
|
||||
return c1 - c2;
|
||||
return NUMERIC_CMP(c1, c2);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user