Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
NULL pointer dereference in domain_dname() #30
While fuzzing nsd-checkzone with Honggfuzz, I found a NULL pointer dereference in the domain_dname() function.
I believe it was introduced by commit b4528a3.
Attaching a reproducer (gzipped so GitHub accepts it): zone04.gz
Issue can be reproduced by running:
In namedb.h L270 returning
Hi again! Thanks for the fuzzing action, this reveals nice corner cases. The domain name is missing and it tries to print it in the error message, but the earlier parse error makes the domain name NULL causing it to error in the error printout. I added a check for the domain name working.