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

Issue 1602563003: Fix usage of snprintf for MSVC (Closed)

Created:
4 years, 11 months ago by labath
Modified:
4 years, 11 months ago
CC:
google-breakpad-dev_googlegroups.com
Base URL:
https://chromium.googlesource.com/breakpad/breakpad@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Fix usage of snprintf for MSVC Older versions of MSVC don't have a snprintf functions. Some files were already working around that, but not all of them. Instead of copying the logic into every file, I centralize it into a new stdio.h wrapper file and make other files include that. BUG= R=mark@chromium.org Committed: https://chromium.googlesource.com/breakpad/breakpad/+/d5d13e605e161b8374d07ed61b17d75fe6d46381

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -24 lines) Patch
A + src/common/stdio.h View 2 chunks +11 lines, -7 lines 1 comment Download
M src/processor/dump_context.cc View 1 chunk +1 line, -4 lines 0 comments Download
M src/processor/logging.cc View 1 chunk +1 line, -5 lines 0 comments Download
M src/processor/minidump.cc View 2 chunks +1 line, -4 lines 0 comments Download
M src/processor/minidump_processor.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/processor/stackwalk_common.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/processor/symbolic_constants_win.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
labath
4 years, 11 months ago (2016-01-18 16:15:05 UTC) #2
Mark Mentovai
How old is old? Chrome doesn’t care about MSVC older than 2013. I doubt Breakpad ...
4 years, 11 months ago (2016-01-19 22:06:28 UTC) #3
Ted Mielczarek
On 2016/01/19 22:06:28, Mark Mentovai wrote: > How old is old? Chrome doesn’t care about ...
4 years, 11 months ago (2016-01-20 00:20:24 UTC) #4
Mark Mentovai
Oh, 1900 is 2015. OK then, let’s proceed with this.
4 years, 11 months ago (2016-01-20 00:40:23 UTC) #5
Mark Mentovai
LGTM
4 years, 11 months ago (2016-01-20 02:28:09 UTC) #6
Mark Mentovai
Committed patchset #1 (id:1) manually as d5d13e605e161b8374d07ed61b17d75fe6d46381 (presubmit successful).
4 years, 11 months ago (2016-01-20 02:28:49 UTC) #8
labath
I am using MSVC 2013 to build this. Thank you for committing.
4 years, 11 months ago (2016-01-20 10:10:55 UTC) #9
brucedawson
https://codereview.chromium.org/1602563003/diff/1/src/common/stdio.h File src/common/stdio.h (right): https://codereview.chromium.org/1602563003/diff/1/src/common/stdio.h#newcode38 src/common/stdio.h:38: #define snprintf _snprintf It's slightly terrifying that we're doing ...
4 years, 11 months ago (2016-01-20 21:29:16 UTC) #11
labath
On 2016/01/20 21:29:16, brucedawson wrote: > https://codereview.chromium.org/1602563003/diff/1/src/common/stdio.h > File src/common/stdio.h (right): > > https://codereview.chromium.org/1602563003/diff/1/src/common/stdio.h#newcode38 > ...
4 years, 11 months ago (2016-01-21 10:37:21 UTC) #12
Mark Mentovai
Correct. We don’t run any of the processor-side stuff in Chrome or on Windows.
4 years, 11 months ago (2016-01-21 13:06:42 UTC) #13
Ted Mielczarek
4 years, 11 months ago (2016-01-21 15:24:11 UTC) #14
Message was sent while issue was closed.
On 2016/01/21 13:06:42, Mark Mentovai wrote:
> Correct. We don’t run any of the processor-side stuff in Chrome or on Windows.

Some of it gets built as part of the Windows unit tests, but it's not that big
of a deal.

Powered by Google App Engine
This is Rietveld 408576698