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

Side by Side Diff: src/processor/minidump_processor.cc

Issue 1602563003: Fix usage of snprintf for MSVC (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006, Google Inc. 1 // Copyright (c) 2006, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 12 matching lines...) Expand all
23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 29
30 #include "google_breakpad/processor/minidump_processor.h" 30 #include "google_breakpad/processor/minidump_processor.h"
31 31
32 #include <assert.h> 32 #include <assert.h>
33 #include <stdio.h>
34 33
35 #include <string> 34 #include <string>
36 35
37 #include "common/scoped_ptr.h" 36 #include "common/scoped_ptr.h"
37 #include "common/stdio.h"
38 #include "common/using_std_string.h" 38 #include "common/using_std_string.h"
39 #include "google_breakpad/processor/call_stack.h" 39 #include "google_breakpad/processor/call_stack.h"
40 #include "google_breakpad/processor/minidump.h" 40 #include "google_breakpad/processor/minidump.h"
41 #include "google_breakpad/processor/process_state.h" 41 #include "google_breakpad/processor/process_state.h"
42 #include "google_breakpad/processor/exploitability.h" 42 #include "google_breakpad/processor/exploitability.h"
43 #include "google_breakpad/processor/stack_frame_symbolizer.h" 43 #include "google_breakpad/processor/stack_frame_symbolizer.h"
44 #include "processor/logging.h" 44 #include "processor/logging.h"
45 #include "processor/stackwalker_x86.h" 45 #include "processor/stackwalker_x86.h"
46 #include "processor/symbolic_constants_win.h" 46 #include "processor/symbolic_constants_win.h"
47 47
(...skipping 1484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1532 char assertion_line[32]; 1532 char assertion_line[32];
1533 snprintf(assertion_line, sizeof(assertion_line), "%u", raw_assertion->line); 1533 snprintf(assertion_line, sizeof(assertion_line), "%u", raw_assertion->line);
1534 assertion_string.append(" at line "); 1534 assertion_string.append(" at line ");
1535 assertion_string.append(assertion_line); 1535 assertion_string.append(assertion_line);
1536 } 1536 }
1537 1537
1538 return assertion_string; 1538 return assertion_string;
1539 } 1539 }
1540 1540
1541 } // namespace google_breakpad 1541 } // namespace google_breakpad
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698