mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-03-07 14:18:15 +08:00
ITS#7432 fix typo in mdb_midl_sort
Wasn't pushing the optimal half of the array onto the stack, thus used more stack than expected -> overrun.
This commit is contained in:
parent
0108327c27
commit
bb36bdcd1c
@ -232,7 +232,7 @@ mdb_midl_sort( MDB_IDL ids )
|
||||
ids[l+1] = ids[j];
|
||||
ids[j] = a;
|
||||
jstack += 2;
|
||||
if (ir-i+1 >= j-1) {
|
||||
if (ir-i+1 >= j-l) {
|
||||
istack[jstack] = ir;
|
||||
istack[jstack-1] = i;
|
||||
ir = j-1;
|
||||
|
Loading…
Reference in New Issue
Block a user