From: Bart Van Assche Date: Thu, 13 May 2010 08:10:52 +0000 (+0000) Subject: Added an additional tl_assert() statement. X-Git-Tag: svn/VALGRIND_3_6_0~294 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=178c001a3c47e9713e7a50e755662385c6ccb7b0;p=thirdparty%2Fvalgrind.git Added an additional tl_assert() statement. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11130 --- diff --git a/drd/drd_semaphore.c b/drd/drd_semaphore.c index 77c34c99ec..1cb03a570a 100644 --- a/drd/drd_semaphore.c +++ b/drd/drd_semaphore.c @@ -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++;