- Fix authzone printout buffer length check.

This commit is contained in:
W.C.A. Wijngaards 2019-11-19 10:09:44 +01:00
parent d8090b8cae
commit 16bbfc3461
2 changed files with 2 additions and 1 deletions

View file

@ -1,6 +1,7 @@
19 November 2019: Wouter
- Fix CVE-2019-18934, shell execution in ipsecmod.
- 1.9.5 is 1.9.4 with bugfix, trunk is 1.9.6 in development.
- Fix authzone printout buffer length check.
18 November 2019: Wouter
- In unbound-host use separate variable for get_option to please

View file

@ -1654,7 +1654,7 @@ auth_rr_to_string(uint8_t* nm, size_t nmlen, uint16_t tp, uint16_t cl,
}
w += sldns_str_print(&s, &slen, "\n");
if(w > (int)buflen) {
if(w >= (int)buflen) {
log_nametypeclass(0, "RR too long to print", nm, tp, cl);
return 0;
}