]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Added an additional tl_assert() statement.
authorBart Van Assche <bvanassche@acm.org>
Thu, 13 May 2010 08:10:52 +0000 (08:10 +0000)
committerBart Van Assche <bvanassche@acm.org>
Thu, 13 May 2010 08:10:52 +0000 (08:10 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11130

drd/drd_semaphore.c

index 77c34c99ec24394678201424d3c996705599ed67..1cb03a570a411ade21bd7011595c5abdafc2f3ff 100644 (file)
@@ -337,6 +337,7 @@ void DRD_(semaphore_pre_wait)(const Addr semaphore)
 {
    struct semaphore_info* p;
 
+   tl_assert(semaphore < semaphore + 1);
    p = drd_semaphore_get_or_allocate(semaphore);
    tl_assert(p);
    p->waiters++;