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

Issue 795213003: Fix handling of free descriptors when calling dup2. (Closed)

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

Description

Fix handling of free descriptors when calling dup2. We previously were not properly expanding the free list when dup2 results in growing the descriptor range. Added of test of this. BUG=None TEST=Dup2Allocate R=binji@chromium.org Committed: https://crrev.com/61814731fc7295e1586c7d36ebbd6c9308a4eccb Cr-Commit-Position: refs/heads/master@{#308232}

Patch Set 1 #

Total comments: 10

Patch Set 2 : fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -2 lines) Patch
M native_client_sdk/src/libraries/nacl_io/kernel_object.cc View 1 1 chunk +12 lines, -2 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc View 1 1 chunk +23 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
bradn
6 years ago (2014-12-11 23:44:06 UTC) #1
Sam Clegg
https://codereview.chromium.org/795213003/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_object.cc File native_client_sdk/src/libraries/nacl_io/kernel_object.cc (right): https://codereview.chromium.org/795213003/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_object.cc#newcode257 native_client_sdk/src/libraries/nacl_io/kernel_object.cc:257: int sz = (int)handle_map_.size(); Move this line outside the ...
6 years ago (2014-12-12 00:44:40 UTC) #3
binji
https://codereview.chromium.org/795213003/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_object.cc File native_client_sdk/src/libraries/nacl_io/kernel_object.cc (right): https://codereview.chromium.org/795213003/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_object.cc#newcode256 native_client_sdk/src/libraries/nacl_io/kernel_object.cc:256: if (fd >= (int)handle_map_.size()) { use c++-style cast https://codereview.chromium.org/795213003/diff/1/native_client_sdk/src/tests/nacl_io_test/kernel_proxy_test.cc ...
6 years ago (2014-12-12 18:55:20 UTC) #4
bradn
ptal https://codereview.chromium.org/795213003/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_object.cc File native_client_sdk/src/libraries/nacl_io/kernel_object.cc (right): https://codereview.chromium.org/795213003/diff/1/native_client_sdk/src/libraries/nacl_io/kernel_object.cc#newcode256 native_client_sdk/src/libraries/nacl_io/kernel_object.cc:256: if (fd >= (int)handle_map_.size()) { On 2014/12/12 18:55:20, ...
6 years ago (2014-12-12 22:58:18 UTC) #5
binji
lgtm
6 years ago (2014-12-13 00:55:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/795213003/20001
6 years ago (2014-12-13 01:12:26 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
6 years ago (2014-12-13 02:55:13 UTC) #9
commit-bot: I haz the power
6 years ago (2014-12-13 02:56:03 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/61814731fc7295e1586c7d36ebbd6c9308a4eccb
Cr-Commit-Position: refs/heads/master@{#308232}

Powered by Google App Engine
This is Rietveld 408576698