From da1f8fbef2e488f3f1182fc3fb09e58b2aa3f2bc Mon Sep 17 00:00:00 2001 From: Jim Jagielski Date: Wed, 13 May 2009 18:59:48 +0000 Subject: [PATCH] off by 1 error git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@774493 13f79535-47bb-0310-9956-ffa450edef68 --- modules/mem/mod_plainmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mem/mod_plainmem.c b/modules/mem/mod_plainmem.c index 33e63eb0b8..848f52026c 100644 --- a/modules/mem/mod_plainmem.c +++ b/modules/mem/mod_plainmem.c @@ -139,7 +139,7 @@ static apr_status_t slotmem_mem(ap_slotmem_t *score, unsigned int id, void **mem if (!score) return APR_ENOSHMAVAIL; - if (id < 0 || id > score->num) + if (id < 0 || id >= score->num) return APR_ENOSHMAVAIL; ptr = score->base + score->size * id; -- 2.40.0