Declared ldns_pkt_all and ldns_pkt_all_noquestion so swig sees them.
* Bugfix: parse PTR target of .tomhendrikx.nl with error not crash.
* Bugfix: handle escaped characters in TXT rdata.
+ * bug292: no longer crash on malformed domain names where a label is
+ on position 255, which was a buffer overflow by one.
1.6.3 2009-12-04
* Bugfix: allow for unknown resource records in zonefile with rdlen=0.
return LDNS_STATUS_LABEL_OVERFLOW;
}
+ /* check space for labelcount itself */
+ if (dname_pos + 1 > LDNS_MAX_DOMAINLEN) {
+ return LDNS_STATUS_DOMAINNAME_OVERFLOW;
+ }
tmp_dname[dname_pos] = label_size;
if (label_size > 0) {
dname_pos++;