WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
232093
Two null box iterators from different paths fail to compare equal
https://bugs.webkit.org/show_bug.cgi?id=232093
Summary
Two null box iterators from different paths fail to compare equal
Gabriel Nava Marino
Reported
2021-10-21 10:44:32 PDT
Two null box iterators from different paths fail to compare equal in BoxIterator::operator==(
Attachments
Patch
(3.08 KB, patch)
2021-10-21 11:05 PDT
,
Gabriel Nava Marino
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Gabriel Nava Marino
Comment 1
2021-10-21 11:02:20 PDT
Per Antti's recommendation, we will compare equal in the case "both box and end get computed to null iterators (atEnd() is true)" as is currently happening in this loop: for (auto box = inlineBox->firstLeafBox(), end = inlineBox->endLeafBox(); box != end; box.traverseNextOnLine()) { if (!box->isText()) continue;
Gabriel Nava Marino
Comment 2
2021-10-21 11:05:04 PDT
Created
attachment 442047
[details]
Patch
Gabriel Nava Marino
Comment 3
2021-10-21 11:06:42 PDT
(In reply to Gabriel Nava Marino from
comment #1
)
> Per Antti's recommendation, we will compare equal in the case "both box and > end get computed to null iterators (atEnd() is true)" as is currently
as is *not* currently happening in this loop
> happening in this loop: > > for (auto box = inlineBox->firstLeafBox(), end = > inlineBox->endLeafBox(); box != end; box.traverseNextOnLine()) { > if (!box->isText()) > continue;
EWS
Comment 4
2021-10-21 21:52:59 PDT
Committed
r284665
(
243385@main
): <
https://commits.webkit.org/243385@main
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 442047
[details]
.
Radar WebKit Bug Importer
Comment 5
2021-10-21 21:53:14 PDT
<
rdar://problem/84535523
>
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