Fix a crash while parsing malformed CAA RRs in presentation format (#39003)

(cherry picked from commit f9f81abff0)
(cherry picked from commit ffc5d17ea8)
This commit is contained in:
Mukund Sivaraman
2015-03-27 10:34:50 +05:30
parent 372cfb50ad
commit c04823752a
3 changed files with 7 additions and 1 deletions
+6
View File
@@ -1,3 +1,9 @@
4090. [bug] Fix a crash while parsing malformed CAA RRs in
presentation format, i.e., from text such as
from master files. Thanks to John Van de
Meulebrouck Brendgard for discovering and
reporting this problem. [RT #39003]
4089. [bug] Send notifies immediately for slave zones during
startup. [RT #38843]
Binary file not shown.
+1 -1
View File
@@ -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));