aboutsummaryrefslogtreecommitdiff
path: root/src/client/windows/crash_generation
diff options
context:
space:
mode:
authorivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-08-17 01:41:05 +0000
committerivan.penkov@gmail.com <ivan.penkov@gmail.com@4c0a9323-5329-0410-9bdc-e9ce6186880e>2012-08-17 01:41:05 +0000
commite050c46a53d7cc48d8d8fa3215fbab43f40b9ce3 (patch)
treea0536c37bf96de278eee3da0b8d82487b7177aef /src/client/windows/crash_generation
parentFixing a race condition in the Crash Generation Server which has to (diff)
downloadbreakpad-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/windows/crash_generation')
-rw-r--r--src/client/windows/crash_generation/minidump_generator.cc8
1 files changed, 4 insertions, 4 deletions
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;
}