Improper return value handling in dns_adb_findaddrinfo (lib/dns/adb.c) can lead to SEGV

Brian Conry brian at theconrys.com
Sun Sep 9 17:29:05 UTC 2007


Under low memory conditions new_adbaddrinfo() can return NULL, but
dns_adb_findaddrinfo was returning ISC_R_SUCCESS in that condition,
which indicates that the addrp should contain a valid pointer, but it
can not.

This has been observed to cause a SEGV core dump during testing.

I've attached a patch to return ISC_R_NOMEMORY.

Thanks,
Brian
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dns_adb_findaddrinfo.patch
URL: <https://lists.isc.org/pipermail/bind-workers/attachments/20070909/b4589cb8/attachment.ksh>


More information about the bind-workers mailing list