Closed Bug 1506311 Opened 7 years ago Closed 7 years ago

Refine filtering of CGColorSpaceCreateDevice symbols where redirection instructions can be installed

Categories

(Core Graveyard :: Web Replay, defect)

defect
Not set
normal

Tracking

(firefox65 fixed)

RESOLVED FIXED
mozilla65
Tracking Status
firefox65 --- fixed

People

(Reporter: bhackett1024, Assigned: bhackett1024)

References

Details

Attachments

(1 file)

Attached patch patchSplinter Review
Bug 1505922 adds a redirection for CGColorSpaceCreateDeviceGray, but on 10.13.6 this redirection is unable to be installed; thanks to the diagnostic logging in bug 1506280, this is shown to be because we could not find a place to patch long jumps for the redirection that are in range of a short jump at the start of CGColorSpaceCreateDeviceGray. The logs indicate that we are, however, skipping over __CGColorSpaceCreateDeviceGray_block_invoke, a large and uncomplicated block of code that is a great place to stick some redirection jumps. We skip over this because the filter that prevents us from inserting a long jump at the start of CGColorSpaceCreateDeviceGray (it has a backedge which will be corrupted if we insert the long jump) also matches against __CGColorSpaceCreateDeviceGray_block_invoke. The attached patch fixes this filter so it only matches against the backedge-containing symbol, CGColorSpaceCreateDeviceGray. A similar case in CGColorSpaceCreateDeviceRGB is also handled.
Attachment #9024157 - Flags: review?(lsmyth)
Pushed by bhackett@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/611ca008b6be Refine filtering of CGColorSpaceCreateDevice symbols where redirection instructions can be installed.
Nightly is still broken on 10.13 because of bug 1505922, so landing this now to unbreak things.
Attachment #9024157 - Flags: review?(lsmyth) → review+
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla65
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: