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

Issue 6543039: Bug: OS::MemoryMappedFile::open() should not truncate a pre-existing file. (Closed)

Created:
9 years, 10 months ago by marklam
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Bug: OS::MemoryMappedFile::open() should not truncate a pre-existing file. Committed: http://code.google.com/p/v8/source/detail?r=6872

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -8 lines) Patch
M src/platform-cygwin.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/platform-freebsd.cc View 1 2 chunks +2 lines, -2 lines 1 comment Download
M src/platform-linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/platform-macos.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/platform-openbsd.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/platform-solaris.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M src/platform-win32.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
marklam
While testing LOL code, I see that OS::MemoryMappedFile::open() which I introduced previously had a bug. ...
9 years, 10 months ago (2011-02-20 09:07:47 UTC) #1
mnaganov (inactive)
http://codereview.chromium.org/6543039/diff/1/src/platform-linux.cc File src/platform-linux.cc (right): http://codereview.chromium.org/6543039/diff/1/src/platform-linux.cc#newcode330 src/platform-linux.cc:330: FILE* file = fopen(name, "a+"); I don't think "a+" ...
9 years, 10 months ago (2011-02-21 10:37:56 UTC) #2
marklam
On 2011/02/21 10:37:56, Mikhail Naganov (Chromium) wrote: > http://codereview.chromium.org/6543039/diff/1/src/platform-linux.cc > File src/platform-linux.cc (right): > > ...
9 years, 10 months ago (2011-02-21 15:05:59 UTC) #3
mnaganov (inactive)
9 years, 10 months ago (2011-02-21 17:10:05 UTC) #4
I see a wrong change in platform-freebsd, but it's trivial to fix.

LGTM, I will land a corrected change.

http://codereview.chromium.org/6543039/diff/1010/src/platform-freebsd.cc
File src/platform-freebsd.cc (right):

http://codereview.chromium.org/6543039/diff/1010/src/platform-freebsd.cc#newc...
src/platform-freebsd.cc:241: FILE* file = fopen(name, "r+");
Looks like you've changed this in a wrong place.

Powered by Google App Engine
This is Rietveld 408576698