kriszyp / lmdb-js

Simple, efficient, ultra-fast, scalable data store wrapper for LMDB
Other
505 stars 41 forks source link

getMany with an empty array as keys crashes the whole process #151

Closed oldrich-svec closed 2 years ago

oldrich-svec commented 2 years ago

In the following many variable should contain an empty array but instead the whole process crashes.

const lmdb = require('lmdb')

const db = lmdb.open('test')

async function main() {
    const many = await db.getMany([])
    console.log(many)
    console.log('end')
}

main()
kriszyp commented 2 years ago

Fix published in v2.2.6