You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@yiwu-arbug Thanks for reporting. It looks like there are more places where Transform() is called without calling InDomain() first - HashLinkListRep, SkipListRep, PlainTable, and ForwardIterator.
yiwu-arbug
changed the title
DBIter and HashSkipListRep don't check InDomain() before using prefix extractor
Multiple code paths don't check InDomain() before using prefix extractor
Apr 23, 2019
DBIter and HashSkipListRep don't check InDomain() before using prefix extractor, which can cause crash or unexpected behavior.
rocksdb/db/db_iter.cc
Line 465 in 29111e9
rocksdb/memtable/hash_skiplist_rep.cc
Line 182 in 29111e9
Expected behavior
RocksDB either correctly handle keys out of domain of prefix extractor, or return error.
Actual behavior
RocksDB may crash.
Steps to reproduce the behavior
Insert keys not satisfying prefix extractor to the DB.
The text was updated successfully, but these errors were encountered: