Skip to content

Commit

Permalink
Fix bug leading to call get_unchecked on empty array UB
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierHecart committed Jul 1, 2024
1 parent 0c7faa9 commit bf475e4
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 bf475e4

Please sign in to comment.