This repository was archived by the owner on Mar 22, 2023. It is now read-only.
Commit 51cb8af
committed
radix_tree: fix internal find
Fix comparison between n->byte and key.size(). When using pmem::obj::string
or inline_string the behavior was ok (since we always have null terminator
at the end), but we technically access out-of-range memory which can cause
asserts in string_view operator[].1 parent 26da8fa commit 51cb8af
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1744 | 1744 | | |
1745 | 1745 | | |
1746 | 1746 | | |
1747 | | - | |
| 1747 | + | |
1748 | 1748 | | |
1749 | 1749 | | |
1750 | 1750 | | |
| |||
0 commit comments