Skip to content

Commit 869ace6

Browse files
Fix bug in keyexpr::includes leading to call get_unchecked on empty array UB (#1208)
1 parent 2500e5a commit 869ace6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commons/zenoh-keyexpr/src/key_expr/include.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ impl Includer<&[u8], &[u8]> for LTRIncluder {
4141
if (lempty && !right.has_verbatim()) || (!lempty && self.includes(lrest, right)) {
4242
return true;
4343
}
44-
if unsafe { right.has_direct_verbatim_non_empty() } {
44+
if right.has_direct_verbatim() {
4545
return false;
4646
}
4747
right = Split::split_once(right, &DELIMITER).1;

0 commit comments

Comments
 (0)