mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
Replace the previous caching/binary-search approach with Newton-Raphson iteration and bisection fallback. This is the same algorithm used by WebKit, Chromium, and Firefox. The old code had a broken binary search comparator that could never return 0 (the second condition was always true when the first was false), leading to out-of-bounds vector accesses and crashes. Fixes #3628.
16 KiB
16 KiB