Closed
Bug 1462100
Opened 7 years ago
Closed 7 years ago
Disabling Sandbox Exports causes invalid conversions
Categories
(Core :: Security: Process Sandboxing, defect, P1)
Core
Security: Process Sandboxing
Tracking
()
RESOLVED
FIXED
mozilla62
People
(Reporter: tjr, Assigned: tjr)
References
Details
Attachments
(3 files)
59 bytes,
text/x-review-board-request
|
bobowen
:
review+
|
Details |
59 bytes,
text/x-review-board-request
|
bobowen
:
review+
|
Details |
4.78 KB,
patch
|
jcristau
:
approval-mozilla-esr60+
|
Details | Diff | Splinter Review |
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 hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
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)
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Priority: -- → P1
Comment 5•7 years ago
|
||
mozreview-review |
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 6•7 years ago
|
||
mozreview-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+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 8•7 years ago
|
||
[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?
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Comment 11•7 years ago
|
||
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
Comment 12•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8d4ac4eb034c
https://hg.mozilla.org/mozilla-central/rev/72edf78c24ef
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox62:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
Comment 13•7 years ago
|
||
Comment on attachment 8976588 [details] [diff] [review]
esr60.patch
mingw fix, approved for 60.1esr
Attachment #8976588 -
Flags: approval-mozilla-esr60? → approval-mozilla-esr60+
Comment 14•7 years ago
|
||
bugherder uplift |
status-firefox-esr60:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•