mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-05 09:05:40 +00:00
Fix a crash while parsing malformed CAA RRs in presentation format (#39003)
This commit is contained in:
@@ -68,7 +68,7 @@ fromtext_caa(ARGS_FROMTEXT) {
|
||||
ISC_FALSE));
|
||||
tr = token.value.as_textregion;
|
||||
for (i = 0; i < tr.length; i++)
|
||||
if (!alphanumeric[(unsigned int) tr.base[i]])
|
||||
if (!alphanumeric[(unsigned char) tr.base[i]])
|
||||
RETTOK(DNS_R_SYNTAX);
|
||||
RETERR(uint8_tobuffer(tr.length, target));
|
||||
RETERR(mem_tobuffer(target, tr.base, tr.length));
|
||||
|
Reference in New Issue
Block a user