string parse routine.
git-svn-id: file:///svn/unbound/trunk@4133
be551aaa-1e26-0410-a405-
d3ace91eadb9
+26 April 2017: Wouter
+ - Based on #1257: check parse limit before t increment in sldns RR
+ string parse routine.
+
24 April 2017: Wouter
- unbound-checkconf -o allows query of dnstap config variables.
Also unbound-control get_option. Also for dnscrypt.
if (line_nr) {
*line_nr = *line_nr + 1;
}
+ if (limit > 0 && (i >= limit || (size_t)(t-token) >= limit)) {
+ *t = '\0';
+ return -1;
+ }
*t++ = ' ';
prev_c = c;
continue;