2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-29 13:38:26 +00:00

Silence "Use of memory after it is freed" by asserting the head and tail of list are not the element after it is unlinked from the list.

This commit is contained in:
Mark Andrews 2013-01-17 14:15:28 +11:00
parent 54c820164a
commit d710475e18

View File

@ -102,6 +102,8 @@
} \
(elt)->link.prev = (type *)(-1); \
(elt)->link.next = (type *)(-1); \
ISC_INSIST((list).head != (elt)); \
ISC_INSIST((list).head != (elt)); \
} while (0)
#define __ISC_LIST_UNLINKUNSAFE(list, elt, link) \