WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
286831
An infinite loop happens when drawing wavy underline for small text at a very large x-position
https://bugs.webkit.org/show_bug.cgi?id=286831
Summary
An infinite loop happens when drawing wavy underline for small text at a very...
Said Abou-Hallawa
Reported
2025-01-31 15:16:28 PST
Created
attachment 474082
[details]
test case (Will jetsam) Open the attached text case. Result: WebKit enters an infinite loop and eventually it jetsams. This happens because of floating point precision. If a float which is greater than 2^23 is added to a fraction which is less than 0.5, the result will be equal to the large number and the fraction will be dropped. float x = 10000000; float step = 0.2; float y = x + step; // y will be equal to x;
Attachments
test case (Will jetsam)
(284 bytes, text/html)
2025-01-31 15:16 PST
,
Said Abou-Hallawa
no flags
Details
View All
Add attachment
proposed patch, testcase, etc.
Said Abou-Hallawa
Comment 1
2025-01-31 15:17:20 PST
rdar://141022987
Said Abou-Hallawa
Comment 2
2025-01-31 15:29:31 PST
Pull request:
https://github.com/WebKit/WebKit/pull/39837
EWS
Comment 3
2025-01-31 21:59:50 PST
Committed
289659@main
(8cf800b33c66): <
https://commits.webkit.org/289659@main
> Reviewed commits have been landed. Closing PR #39837 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug