Potential for NULL pointer de-references (CWE-476) in file 'zone.c' in BIND-9.12.1-P2
In reviewing source code in BIND-9.12.1-P2, in directory 'lib/dns/', file 'zone.c', there are several calls to isc_mem_strdup() are not checked for a return value of NULL, indicating failure which could lead to a de-reference and segmentation fault(s).
Steps to reproduce
What is the current bug behavior?
Several calls to isc_mem_strdup() are not checked for a return value of NULL in file 'zone.c'
What is the expected correct behavior?
Check all calls to isc_mem_strdup() for a return value of NULL in file 'zone.c'
Relevant configuration files
Relevant logs and/or screenshots
Add tests for NULL so all calls to isc_mem_strdup() are checked in file 'zone.c'