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:
parent
54c820164a
commit
d710475e18
@ -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) \
|
||||
|
Loading…
x
Reference in New Issue
Block a user