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

Issue 1062463004: [NaCl SDK] nacl_io: Fix use-after-free bug in html5fs (Closed)

Created:
5 years, 8 months ago by binji
Modified:
5 years, 8 months ago
Reviewers:
khim, Sam Clegg
CC:
chromium-reviews, binji+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NaCl SDK] nacl_io: Fix use-after-free bug in html5fs nacl_io::Path::Part returns a temporary string. The code that hashes the path to create a phony ino calls this, and stashes a pointer to the memory. The real issue with nacl_io_demo is that the quota was too low. I've upped it to 5 megs now. BUG=478230 R=sbc@chromium.org Committed: https://crrev.com/ccbe99a8e0ab02e923af802bfef76c56fcb803d2 Cr-Commit-Position: refs/heads/master@{#326850}

Patch Set 1 #

Total comments: 2

Patch Set 2 : revert unnecessary changes #

Patch Set 3 : use const std::string& #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -4 lines) Patch
M native_client_sdk/src/examples/demo/nacl_io_demo/example.js View 1 1 chunk +1 line, -1 line 0 comments Download
M native_client_sdk/src/libraries/nacl_io/html5fs/html5_fs.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
binji
5 years, 8 months ago (2015-04-17 19:58:14 UTC) #1
Sam Clegg
lgtm.. is there a better long term solution here? I guess its because we are ...
5 years, 8 months ago (2015-04-17 20:52:44 UTC) #2
khim
https://codereview.chromium.org/1062463004/diff/1/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc File native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc (right): https://codereview.chromium.org/1062463004/diff/1/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc#newcode251 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc:251: std::string path_str(path.Join()); Fly-by comment: why "std:sttring" here? Why not ...
5 years, 8 months ago (2015-04-17 21:20:06 UTC) #4
binji
OK, I'm wrong about something here. This construct should be legal: http://stackoverflow.com/questions/1837092/c-destruction-of-temporary-object-in-an-expression But I this ...
5 years, 8 months ago (2015-04-18 00:10:21 UTC) #5
khim
On Sat, Apr 18, 2015 at 3:10 AM, <binji@chromium.org> wrote: > OK, I'm wrong about ...
5 years, 8 months ago (2015-04-18 00:27:23 UTC) #6
binji
On 2015/04/18 00:27:23, khim wrote: > On Sat, Apr 18, 2015 at 3:10 AM, <mailto:binji@chromium.org> ...
5 years, 8 months ago (2015-04-20 22:35:20 UTC) #7
binji
https://codereview.chromium.org/1062463004/diff/1/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc File native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc (right): https://codereview.chromium.org/1062463004/diff/1/native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc#newcode251 native_client_sdk/src/libraries/nacl_io/devfs/dev_fs.cc:251: std::string path_str(path.Join()); On 2015/04/17 21:20:05, khim wrote: > Fly-by ...
5 years, 8 months ago (2015-04-20 22:35:28 UTC) #8
Sam Clegg
lgtm, although might be worth splitting into two CLs
5 years, 8 months ago (2015-04-20 22:43:34 UTC) #9
Sam Clegg
On 2015/04/20 22:43:34, Sam Clegg wrote: > lgtm, although might be worth splitting into two ...
5 years, 8 months ago (2015-04-20 22:44:23 UTC) #10
Sam Clegg
On 2015/04/20 22:44:23, Sam Clegg wrote: > On 2015/04/20 22:43:34, Sam Clegg wrote: > > ...
5 years, 8 months ago (2015-04-24 17:50:25 UTC) #11
binji
On 2015/04/24 17:50:25, Sam Clegg wrote: > On 2015/04/20 22:44:23, Sam Clegg wrote: > > ...
5 years, 8 months ago (2015-04-24 18:15:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1062463004/40001
5 years, 8 months ago (2015-04-24 18:16:24 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 8 months ago (2015-04-24 18:58:23 UTC) #15
commit-bot: I haz the power
5 years, 8 months ago (2015-04-24 19:00:08 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ccbe99a8e0ab02e923af802bfef76c56fcb803d2
Cr-Commit-Position: refs/heads/master@{#326850}

Powered by Google App Engine
This is Rietveld 408576698