mirror of
git://jb55.com/damus
synced 2024-09-29 00:10:43 +00:00
lmdb: fix weird crash in lmdb. need to follow up upstream
I may be something dumb, so asking the LMDB why this is crashing here might enlighten us.
This commit is contained in:
parent
b80bab35b8
commit
4686b7aca6
@ -171,6 +171,12 @@ int mdb_midl_append( MDB_IDL *idp, MDB_ID id )
|
||||
int mdb_midl_append_list( MDB_IDL *idp, MDB_IDL app )
|
||||
{
|
||||
MDB_IDL ids = *idp;
|
||||
|
||||
if (ids == 0) {
|
||||
printf("txn: HITTING MDB_MIDL_APPEND NULL IDS\n");
|
||||
return EINVAL;
|
||||
}
|
||||
|
||||
/* Too big? */
|
||||
if (ids[0] + app[0] >= ids[-1]) {
|
||||
if (mdb_midl_grow(idp, app[0]))
|
||||
|
Loading…
Reference in New Issue
Block a user