Commit f8aebc52 authored by Max Kellermann's avatar Max Kellermann

music_pipe: poison music_chunk.next

The value of music_chunk.next is undefined for a chunk returned by music_pipe_shift(). For more pedantic debugging, poison the reference before returning the chunk.
parent 39d35219
......@@ -88,6 +88,11 @@ music_pipe_shift(struct music_pipe *mp)
assert(mp->size > 0);
assert(mp->tail_r != &chunk->next);
}
#ifndef NDEBUG
/* poison the "next" reference */
chunk->next = (void*)0x01010101;
#endif
}
g_mutex_unlock(mp->mutex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment