Skip to content

Commit

Permalink
Fix string out of bounds access issue
Browse files Browse the repository at this point in the history
  • Loading branch information
davide125 committed Feb 22, 2022
1 parent 1fef25c commit 87dcb04
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/tp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ void FeTextPrimative::fit_string(
{
i--;
last_char = i - 1;
if (last_char < 0) last_char = 0;
if ( s[last_char] == L' ' ) last_char--;
}
else
Expand Down

0 comments on commit 87dcb04

Please sign in to comment.