An issue was discovered in py-lmdb 0.97. For certain values of mdflags, mdbnode_add does not properly set up a memcpy destination, leading to an invalid write operation. NOTE: this outcome occurs when accessing a data.mdb file supplied by an attacker.