[Date Prev][Date Next] [Chronological] [Thread] [Top]

(ITS#8311) Crash in mdb_page_split(): negative cursor index



Full_Name: Hallvard B Furuseth
Version: mdb.master, 3360cbad668f678fb23c064ca4efcc5c9ae95d10
OS: Linux x86_64
URL: ftp://ftp.openldap.org/incoming/Hallvard-Furuseth-151118.c
Submission from: (NULL) (129.240.203.186)
Submitted by: hallvard


The test program crashes in mdb_page_split() line 8546
because ptop == -1:

if (SIZELEFT(mn.mc_pg[ptop]) < mdb_branch_size(env, &sepkey)) {