diff options
Diffstat (limited to 'src/client/windows/crash_generation')
-rw-r--r-- | src/client/windows/crash_generation/minidump_generator.cc | 8 |
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; } |