commit | 9aeef6b50d23a9f430b65c6f3454d14db0083832 | [log] [download] |
---|---|---|
author | Damien Miller <djm@mindrot.org> | Fri Oct 26 16:42:18 2007 +1000 |
committer | Damien Miller <djm@mindrot.org> | Fri Oct 26 16:42:18 2007 +1000 |
tree | b7b6329c494dce38437f019db2a846787b3a0ea2 | |
parent | d129ecb0f98ea6e7e83f2a0a8914d3f99d5184c9 [diff] |
- otto@cvs.openbsd.org 2005/10/17 20:19:42 [openbsd-compat/sys-queue.h] Performing certain operations on queue.h data structurs produced funny results. An example is calling LIST_REMOVE on the same element twice. This will not fail, but result in a data structure referencing who knows what. Prevent these accidents by NULLing some fields on remove and replace. This way, either a panic or segfault will be produced on the faulty operation.