Bug 219601 - Add check to ensure that the size of the result of AXTextMarkerGetBytePtr is equal to the size of TextMarkerData.
Summary: Add check to ensure that the size of the result of AXTextMarkerGetBytePtr is ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andres Gonzalez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-12-07 07:59 PST by Andres Gonzalez
Modified: 2020-12-07 14:00 PST (History)
10 users (show)

See Also:


Attachments
Patch (1.97 KB, patch)
2020-12-07 08:13 PST, Andres Gonzalez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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>