It's not crucial to have this in the test suite, but we should follow
our own examples.
Signed-off-by: Daniel Mack <daniel@zonque.org>
(typeof(item))(((uint8_t *)item) + KDBUS_ALIGN8((item)->size))
#define KDBUS_ITEM_FOREACH(item, head, first) \
for (item = (head)->first; \
- (uint8_t *)(item) < (uint8_t *)(head) + (head)->size; \
+ ((uint8_t *)(item) < (uint8_t *)(head) + (head)->size) && \
+ ((uint8_t *)(item) >= (uint8_t *)(head)); \
item = KDBUS_ITEM_NEXT(item))