NLnetLabs / ldns

LDNS is a DNS library that facilitates DNS tool programming
https://nlnetlabs.nl/ldns
BSD 3-Clause "New" or "Revised" License
301 stars 99 forks source link

Fix undefined reference to "rpl_malloc" #81

Closed noloader closed 4 years ago

noloader commented 4 years ago

This PR fixes one of the Asan test failures.

The Asan test for this PR is:

13-unit-tests-base.o: In function `test_base64_encode':
/home/travis/build/noloader/ldns/test/13-unit-tests-base.cYieJC/./13-unit-tests-base.c:26: undefined reference to `rpl_malloc'
13-unit-tests-base.o: In function `test_base64_decode':
/home/travis/build/noloader/ldns/test/13-unit-tests-base.cYieJC/./13-unit-tests-base.c:68: undefined reference to `rpl_malloc'
13-unit-tests-base.o: In function `test_base32_encode':
/home/travis/build/noloader/ldns/test/13-unit-tests-base.cYieJC/./13-unit-tests-base.c:118: undefined reference to `rpl_malloc'
/home/travis/build/noloader/ldns/test/13-unit-tests-base.cYieJC/./13-unit-tests-base.c:118: undefined reference to `rpl_malloc'

The other failure - the memory leaks in ldns_rr_new and ldns_rdf_new_frm_data - are still present. Another PR will fix them.

wtoorop commented 4 years ago

Ack. Thanks again!