mozilla / rkv

A simple, humane, typed key-value storage solution.
https://crates.io/crates/rkv
Apache License 2.0
307 stars 52 forks source link

test exceeding LMDB's key size limit #150

Closed mykmelez closed 4 years ago

mykmelez commented 4 years ago

@victorporof This was my attempt to reproduce the mdb_cursor_put crash via a too-long key. Long story short, I didn't reproduce it; LMDB just returns an error. But I wonder if some different key size might do so, or if there's something else about the way that LMDB is compiled into Firefox that causes it to crash instead of returning an error.

(Regardless, I guess it's useful to have this test, although ideally rkv would prevent its consumers from using an overlong key to begin with.)