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:
@@ -109,6 +109,9 @@ dns_ttl_totext(isc_uint32_t src, isc_boolean_t verbose, isc_buffer_t *target) {
|
||||
/*
|
||||
* The unit letter is the last character in the
|
||||
* used region of the buffer.
|
||||
*
|
||||
* toupper() does not need its argument to be masked of cast
|
||||
* here because region.base is type unsigned char *.
|
||||
*/
|
||||
isc_buffer_usedregion(target, ®ion);
|
||||
region.base[region.length - 1] =
|
||||
|
Reference in New Issue
Block a user