mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-14 17:13:40 +00:00
[unsafe-to-concat] Adjust end conditions
This commit is contained in:
parent
8663eda4fd
commit
14d43d1235
1 changed files with 1 additions and 2 deletions
|
@ -392,8 +392,7 @@ struct hb_buffer_t
|
|||
bool interior = false,
|
||||
bool from_out_buffer = false)
|
||||
{
|
||||
if (end == (unsigned) -1)
|
||||
end = len;
|
||||
end = hb_min (end, len);
|
||||
|
||||
if (interior && !from_out_buffer && end - start < 2)
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue