LibWeb: Fix OOB access in "text-overflow: ellipsis" clip

Fixes out of bound access to glyph run when `last_glyph_index` is 0.

Fixes crashing on https://github.com/LadybirdBrowser/ladybird/pulls
This commit is contained in:
Aliaksandr Kalenik 2024-08-03 18:18:44 +03:00 committed by Andreas Kling
commit fa605ef225
Notes: github-actions[bot] 2024-08-03 17:46:29 +00:00
2 changed files with 9 additions and 5 deletions

View file

@ -15,3 +15,4 @@
</style>
<div class="clip">This text gets clipped</div>
<div class="ellipsis">This text gets an ellipsis</div>
<div class="ellipsis" style="width: 0px">Invisible</div>