Closed CMCDragonkai closed 2 years ago
It is now possible to have arbitrary buffers as levels. So if the buffer has 0x00 or the separator byte, it is no longer a problem. We now automatically escape the separator bytes, and we also automatically escape any escaping byte too 0x5c.
0x00
0x5c
escapeLevel
unescapeLevel
parseKey
ErrorDBLevelSep
checkSepLevelPath
checkSepKeyPath
Description
It is now possible to have arbitrary buffers as levels. So if the buffer has
0x00
or the separator byte, it is no longer a problem. We now automatically escape the separator bytes, and we also automatically escape any escaping byte too0x5c
.Issues Fixed
Tasks
escapeLevel
unescapeLevel
parseKey
to properly handle where0x00
or0x5c
may appear within the level partErrorDBLevelSep
andcheckSepLevelPath
andcheckSepKeyPath
.Final checklist