Closed Bug 1462100 Opened 7 years ago Closed 7 years ago

Disabling Sandbox Exports causes invalid conversions

Categories

(Core :: Security: Process Sandboxing, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox-esr60 --- fixed
firefox62 --- fixed

People

(Reporter: tjr, Assigned: tjr)

References

Details

Attachments

(3 files)

I accidentally omitted part of Tor's patch when fixing Bug 1460882 and apparently didn't build an x86 esr60 branch like I thought I did. The error is below, and the fix is simply to explicitly cast to void* error: invalid conversion from 'NTSTATUS (__attribute__((__stdcall__)) *)(NtCreateFileFunction, PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES, PIO_STATUS_BLOCK, PLARGE_INTEGER, ULONG, ULONG, ULONG, ULONG, PVOID, ULONG) {aka long int (__attribute__((__stdcall__)) *)(long int (__attribute__((__stdcall__)) *)(void**, long unsigned int, _OBJECT_ATTRIBUTES*, _IO_STATUS_BLOCK*, _LARGE_INTEGER*, long unsigned int, long unsigned int, long unsigned int, long unsigned int, void*, long unsigned int), void**, long unsigned int, _OBJECT_ATTRIBUTES*, _IO_STATUS_BLOCK*, _LARGE_INTEGER*, long unsigned int, long unsigned int, long unsigned int, long unsigned int, void*, long unsigned int)}' to 'const void*' [-fpermissive]
Comment on attachment 8976282 [details] Bug 1462100 Cast to void* to avoid conversion errors on MinGW, which does not do the automatic conversion like msvc https://reviewboard.mozilla.org/r/244464/#review250624 Can we have a patch in security/sandbox/chromium-shim/patches/with_update/ please and an entry in patch_order.txt.
Attachment #8976282 - Flags: review?(bobowencode)
Priority: -- → P1
Comment on attachment 8976282 [details] Bug 1462100 Cast to void* to avoid conversion errors on MinGW, which does not do the automatic conversion like msvc https://reviewboard.mozilla.org/r/244464/#review250736
Attachment #8976282 - Flags: review?(bobowencode) → review+
Comment on attachment 8976580 [details] Bug 1462100 Add the 'cast to void*' MinGW sandbox patch to the chromium patchlist https://reviewboard.mozilla.org/r/244678/#review250738
Attachment #8976580 - Flags: review?(bobowencode) → review+
Keywords: checkin-needed
Woops, need to rebase.
Keywords: checkin-needed
Attached patch esr60.patchSplinter Review
[Approval Request Comment] This is one of several MinGW Build patches I'd like to land in esr60 for Tor. It will prevent them from carrying their own patches for the lifetime of esr60 and will enable us to keep the MinGW build functioning and know if/when/how it was broken by new commits into esr60. This commit only affects the MinGW build configuration, so it is low-risk.
Attachment #8976588 - Flags: approval-mozilla-esr60?
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/8d4ac4eb034c Cast to void* to avoid conversion errors on MinGW, which does not do the automatic conversion like msvc r=bobowen https://hg.mozilla.org/integration/autoland/rev/72edf78c24ef Add the 'cast to void*' MinGW sandbox patch to the chromium patchlist r=bobowen
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Comment on attachment 8976588 [details] [diff] [review] esr60.patch mingw fix, approved for 60.1esr
Attachment #8976588 - Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
Blocks: 1498695
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: