Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
c322c4c7
Commit
c322c4c7
authored
Jan 28, 2016
by
Howard Chu
Browse files
ITS#8363 Fix off-by-one in mdb_midl_shrink
parent
c06c3c77
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/liblmdb/midl.c
View file @
c322c4c7
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment