wdns_reverse_name: fixed buffer overflow on invalid input

wdns_reverse_name has a buffer overflow vulnerability in it when invalid input, such as "\x01", is passed to it.