regressions: Add coverage for ck_bytelock off-by-one.

ck_pring
Samy Al Bahra 11 years ago
parent b8c801136a
commit 79fb6176bb

@ -65,6 +65,9 @@ thread(void *null)
exit(EXIT_FAILURE);
}
if (context->tid == (unsigned int)nthr - 1)
context->tid = sizeof(lock.readers) + 1;
while (i--) {
ck_bytelock_write_lock(&lock, context->tid);
{

Loading…
Cancel
Save