diff options
author | ivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-08-17 01:41:05 +0000 |
---|---|---|
committer | ivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e> | 2012-08-17 01:41:05 +0000 |
commit | e050c46a53d7cc48d8d8fa3215fbab43f40b9ce3 (patch) | |
tree | a0536c37bf96de278eee3da0b8d82487b7177aef /src/client | |
parent | Fixing a race condition in the Crash Generation Server which has to (diff) | |
download | breakpad-e050c46a53d7cc48d8d8fa3215fbab43f40b9ce3.tar.xz |
Fixing a Windows compiler warning in src/client/windows/crash_generation/minidump_generator.cc
http://breakpad.appspot.com/432002/
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1014 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/windows/build/common.gypi | 1 | ||||
-rw-r--r-- | src/client/windows/build/external_code.gypi | 1 | ||||
-rw-r--r-- | src/client/windows/crash_generation/minidump_generator.cc | 8 |
3 files changed, 4 insertions, 6 deletions
diff --git a/src/client/windows/build/common.gypi b/src/client/windows/build/common.gypi index 2860224a..23122f72 100644 --- a/src/client/windows/build/common.gypi +++ b/src/client/windows/build/common.gypi @@ -511,7 +511,6 @@ '_CRT_SECURE_NO_DEPRECATE', '_CRT_NONSTDC_NO_WARNINGS', '_CRT_NONSTDC_NO_DEPRECATE', - '_SCL_SECURE_NO_DEPRECATE', ], 'msvs_disabled_warnings': [4800], 'msvs_settings': { diff --git a/src/client/windows/build/external_code.gypi b/src/client/windows/build/external_code.gypi index 6f968189..906cfe03 100644 --- a/src/client/windows/build/external_code.gypi +++ b/src/client/windows/build/external_code.gypi @@ -43,7 +43,6 @@ '_CRT_SECURE_NO_DEPRECATE', '_CRT_NONSTDC_NO_WARNINGS', '_CRT_NONSTDC_NO_DEPRECATE', - '_SCL_SECURE_NO_DEPRECATE', ], 'msvs_disabled_warnings': [4800], 'msvs_settings': { diff --git a/src/client/windows/crash_generation/minidump_generator.cc b/src/client/windows/crash_generation/minidump_generator.cc index fe4937aa..96d7e81b 100644 --- a/src/client/windows/crash_generation/minidump_generator.cc +++ b/src/client/windows/crash_generation/minidump_generator.cc @@ -33,6 +33,7 @@ #include <avrfsdk.h> #include <algorithm> +#include <iterator> #include <list> #include <vector> @@ -41,9 +42,6 @@ using std::wstring; -// Disable C4996: 'std::copy': Function call with parameters that may be unsafe. -#pragma warning( disable : 4996 ) - namespace { // A helper class used to collect handle operations data. Unlike @@ -177,7 +175,9 @@ bool HandleTraceData::CollectHandleData( stream_data->Reserved = 0; std::copy(operations_.begin(), operations_.end(), - reinterpret_cast<AVRF_HANDLE_OPERATION*>(stream_data + 1)); + stdext::checked_array_iterator<AVRF_HANDLE_OPERATION*>( + reinterpret_cast<AVRF_HANDLE_OPERATION*>(stream_data + 1), + operations_.size())); return true; } |