mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 19:19:35 -05:00
ITS#8363 Fix off-by-one in mdb_midl_shrink
This commit is contained in:
parent
c06c3c7732
commit
c322c4c76c
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ void mdb_midl_shrink( MDB_IDL *idp )
|
|||
{
|
||||
MDB_IDL ids = *idp;
|
||||
if (*(--ids) > MDB_IDL_UM_MAX &&
|
||||
(ids = realloc(ids, (MDB_IDL_UM_MAX+1) * sizeof(MDB_ID))))
|
||||
(ids = realloc(ids, (MDB_IDL_UM_MAX+2) * sizeof(MDB_ID))))
|
||||
{
|
||||
*ids++ = MDB_IDL_UM_MAX;
|
||||
*idp = ids;
|
||||
|
|
|
|||
Loading…
Reference in a new issue