mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
ensure proper range for argument to ctype functions
This commit is contained in:
@@ -138,8 +138,7 @@ hash(const char *key, isc_boolean_t case_sensitive) {
|
||||
} else {
|
||||
for (s = key; *s != '\0'; s++) {
|
||||
c = *s;
|
||||
if (isascii(c) && isupper(c))
|
||||
c = tolower(c);
|
||||
c = tolower((unsigned char)c);
|
||||
h = ( h << 4 ) + c;
|
||||
if ((g = ( h & 0xf0000000 )) != 0) {
|
||||
h = h ^ (g >> 24);
|
||||
|
Reference in New Issue
Block a user