Skip to content

Commit

Permalink
fix for out of bound string access in boolean expr parser (thanks @gr…
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLevy committed Aug 22, 2023
1 parent a92ab67 commit db7a2f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/geogram/mesh/mesh_surface_intersection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1139,7 +1139,7 @@ namespace {
}

char cur_char() const {
return *ptr_;
return (ptr_ == expr_.end()) ? '\0' : *ptr_;
}

void next_char() {
Expand Down

0 comments on commit db7a2f9

Please sign in to comment.