Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Issue 15274002: Do not translate the file open flags other than read/write. (Closed)

Created:
7 years, 7 months ago by mazda
Modified:
7 years, 7 months ago
CC:
chromium-reviews, native-client-reviews_googlegroups.com
Visibility:
Public.

Description

Do not translate the file open flags other than read/write. After r200088, NACL_ABI_O_CREAT, NACL_ABI_O_TRUNC, and NACL_ABI_O_EXCL are passed to NaClDescIoDescFromHandleAllocCtor. But the function does not expect these flags and that causes NaCl to abort. This CL changes NaClIPCAdapter so that is does not translate the file open flags other than PP_FILEOPENFLAG_READ and PP_FILEOPENFLAG_WRITE. BUG=241726 TEST=unit_tests --gtest_filter="NaClIPCAdapterTest.*" Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202027

Patch Set 1 #

Total comments: 6

Patch Set 2 : discard more flags and add a unittest #

Patch Set 3 : discard more flags and add a unittest #

Patch Set 4 : fix win_rel build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -24 lines) Patch
M chrome/nacl/nacl_ipc_adapter.h View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/nacl/nacl_ipc_adapter.cc View 1 3 chunks +22 lines, -24 lines 0 comments Download
M chrome/nacl/nacl_ipc_adapter_unittest.cc View 1 2 chunks +36 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
mazda
Hi, Could you review this change?
7 years, 7 months ago (2013-05-17 08:55:33 UTC) #1
Mark Seaborn
https://codereview.chromium.org/15274002/diff/1/chrome/nacl/nacl_ipc_adapter.cc File chrome/nacl/nacl_ipc_adapter.cc (right): https://codereview.chromium.org/15274002/diff/1/chrome/nacl/nacl_ipc_adapter.cc#newcode122 chrome/nacl/nacl_ipc_adapter.cc:122: #if 0 Don't disable code with "#if 0" -- ...
7 years, 7 months ago (2013-05-17 14:02:35 UTC) #2
victorhsieh
Is there any plan to support the flag in NaCl? I wonder if it's better ...
7 years, 7 months ago (2013-05-17 16:05:47 UTC) #3
Mark Seaborn
On 17 May 2013 09:05, <victorhsieh@chromium.org> wrote: > Is there any plan to support the ...
7 years, 7 months ago (2013-05-17 16:21:24 UTC) #4
Mark Seaborn
On 17 May 2013 09:05, <victorhsieh@chromium.org> wrote: > Is there any plan to support the ...
7 years, 7 months ago (2013-05-17 16:21:33 UTC) #5
victorhsieh
lgtm I see. Make sense to me.
7 years, 7 months ago (2013-05-17 16:36:58 UTC) #6
bsy
https://codereview.chromium.org/15274002/diff/1/chrome/nacl/nacl_ipc_adapter.cc File chrome/nacl/nacl_ipc_adapter.cc (right): https://codereview.chromium.org/15274002/diff/1/chrome/nacl/nacl_ipc_adapter.cc#newcode126 chrome/nacl/nacl_ipc_adapter.cc:126: nacl_open_flag |= NACL_ABI_O_EXCL; TranslatePepperFileOpenFlags is used at line 452 ...
7 years, 7 months ago (2013-05-17 16:38:52 UTC) #7
bsy
https://codereview.chromium.org/15274002/diff/1/chrome/nacl/nacl_ipc_adapter.cc File chrome/nacl/nacl_ipc_adapter.cc (right): https://codereview.chromium.org/15274002/diff/1/chrome/nacl/nacl_ipc_adapter.cc#newcode99 chrome/nacl/nacl_ipc_adapter.cc:99: int TranslatePepperFileOpenFlags(int32_t pp_open_flags) { If the intention is to ...
7 years, 7 months ago (2013-05-17 17:35:02 UTC) #8
mazda
PTAL https://codereview.chromium.org/15274002/diff/1/chrome/nacl/nacl_ipc_adapter.cc File chrome/nacl/nacl_ipc_adapter.cc (right): https://codereview.chromium.org/15274002/diff/1/chrome/nacl/nacl_ipc_adapter.cc#newcode99 chrome/nacl/nacl_ipc_adapter.cc:99: int TranslatePepperFileOpenFlags(int32_t pp_open_flags) { On 2013/05/17 17:35:03, bsy ...
7 years, 7 months ago (2013-05-17 22:09:55 UTC) #9
bsy
red bots.
7 years, 7 months ago (2013-05-20 22:40:09 UTC) #10
mazda
On 2013/05/20 22:40:09, bsy wrote: > red bots. It looks the failure of linux_rel is ...
7 years, 7 months ago (2013-05-21 00:40:21 UTC) #11
mazda
On 2013/05/21 00:40:21, mazda wrote: > On 2013/05/20 22:40:09, bsy wrote: > > red bots. ...
7 years, 7 months ago (2013-05-21 18:00:57 UTC) #12
bsy
lgtm for nacl code usage
7 years, 7 months ago (2013-05-21 18:46:50 UTC) #13
mazda
mseaborn@ Could you do an OWNERS review for chrome/nacl? bradnelson seems OOO.
7 years, 7 months ago (2013-05-21 22:34:57 UTC) #14
bradn
LGTM But alter (in change description): This CL makes CaClIPCAdapter not to translate the file ...
7 years, 7 months ago (2013-05-23 04:06:08 UTC) #15
mazda
On 2013/05/23 04:06:08, bradn wrote: > LGTM > > But alter (in change description): > ...
7 years, 7 months ago (2013-05-23 08:16:57 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/15274002/18001
7 years, 7 months ago (2013-05-23 08:21:57 UTC) #17
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=4559
7 years, 7 months ago (2013-05-23 08:30:58 UTC) #18
bradnelson
lgtm
7 years, 7 months ago (2013-05-23 23:11:44 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mazda@chromium.org/15274002/18001
7 years, 7 months ago (2013-05-23 23:23:37 UTC) #20
commit-bot: I haz the power
7 years, 7 months ago (2013-05-24 09:21:02 UTC) #21
Message was sent while issue was closed.
Change committed as 202027

Powered by Google App Engine
This is Rietveld 408576698