Bug 219601

Summary: Add check to ensure that the size of the result of AXTextMarkerGetBytePtr is equal to the size of TextMarkerData.
Product: WebKit Reporter: Andres Gonzalez <andresg_22>
Component: New BugsAssignee: Andres Gonzalez <andresg_22>
Status: RESOLVED FIXED    
Severity: Normal CC: aboxhall, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Andres Gonzalez 2020-12-07 07:59:46 PST
Add check to ensure that the size of the result of AXTextMarkerGetBytePtr is equal to the size of TextMarkerData.
Comment 1 Andres Gonzalez 2020-12-07 08:13:28 PST
Created attachment 415556 [details]
Patch
Comment 2 Simon Fraser (smfr) 2020-12-07 08:42:40 PST
Comment on attachment 415556 [details]
Patch

OK, but even the same size doesn't guarantee the same layout. Someone might re-order the members on either side.
Comment 3 EWS 2020-12-07 13:59:39 PST
Committed r270523: <https://trac.webkit.org/changeset/270523>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 415556 [details].
Comment 4 Radar WebKit Bug Importer 2020-12-07 14:00:37 PST
<rdar://problem/72062942>