Skip to content

Commit

Permalink
Fix bug in keyexpr::includes leading to call get_unchecked on empty a…
Browse files Browse the repository at this point in the history
…rray UB (#1208)
  • Loading branch information
OlivierHecart authored Jul 2, 2024
1 parent 2500e5a commit 869ace6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commons/zenoh-keyexpr/src/key_expr/include.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Includer<&[u8], &[u8]> for LTRIncluder {
if (lempty && !right.has_verbatim()) || (!lempty && self.includes(lrest, right)) {
return true;
}
if unsafe { right.has_direct_verbatim_non_empty() } {
if right.has_direct_verbatim() {
return false;
}
right = Split::split_once(right, &DELIMITER).1;
Expand Down

0 comments on commit 869ace6

Please sign in to comment.