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

Issue 7308007: MinGW32: define STRUNCATE (Closed)

Created:
9 years, 5 months ago by piscisaureus
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

MinGW32: define STRUNCATE and change strncpy_s implementation to follow specification. This fixes the debug build for MinGW32 Patch by Bert Belder. Committed: http://code.google.com/p/v8/source/detail?r=8552

Patch Set 1 #

Total comments: 1

Patch Set 2 : Correct strncpy_s semantics #

Patch Set 3 : Do the right thing #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -5 lines) Patch
M src/platform-win32.cc View 1 2 1 chunk +31 lines, -5 lines 2 comments Download

Messages

Total messages: 7 (0 generated)
piscisaureus
Add a defined constant that mingw's headers don't have.
9 years, 5 months ago (2011-07-05 13:31:54 UTC) #1
Vyacheslav Egorov (Chromium)
http://codereview.chromium.org/7308007/diff/1/src/platform-win32.cc File src/platform-win32.cc (right): http://codereview.chromium.org/7308007/diff/1/src/platform-win32.cc#newcode154 src/platform-win32.cc:154: strncpy(strDest, strSource, count); This implementation is not safe and ...
9 years, 5 months ago (2011-07-05 13:46:51 UTC) #2
piscisaureus
So you're saying that this can't land unless I also fix *another* issue with the ...
9 years, 5 months ago (2011-07-05 13:51:42 UTC) #3
piscisaureus
Addressed your comment. I didn't run the test suite yet - the gcc/msvc toolchain issue ...
9 years, 5 months ago (2011-07-05 16:16:41 UTC) #4
piscisaureus
Path set 3 is the real thing. I've tried to follow the strncpy_s specifications on ...
9 years, 5 months ago (2011-07-05 22:25:00 UTC) #5
Vyacheslav Egorov (Chromium)
Thanks. I'll with nit and land. http://codereview.chromium.org/7308007/diff/5001/src/platform-win32.cc File src/platform-win32.cc (right): http://codereview.chromium.org/7308007/diff/5001/src/platform-win32.cc#newcode162 src/platform-win32.cc:162: while (dest_size && ...
9 years, 5 months ago (2011-07-06 12:10:33 UTC) #6
Vyacheslav Egorov (Chromium)
9 years, 5 months ago (2011-07-06 12:25:56 UTC) #7
Landed.

Powered by Google App Engine
This is Rietveld 408576698