[breakpad] Avoid stdext::checked_array_iterator (#51774)

This commit is contained in:
Billy O'Neal 2026-05-14 16:12:02 -07:00 committed by GitHub
parent 9bb84f054d
commit 5d2905696a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 22 additions and 2 deletions

View File

@ -1,5 +1,5 @@
diff --git a/src/common/string_view.h b/src/common/string_view.h
index a8e15922..bcaa7b96 100644
index a8e1592..bcaa7b9 100644
--- a/src/common/string_view.h
+++ b/src/common/string_view.h
@@ -29,6 +29,7 @@

View File

@ -0,0 +1,13 @@
diff --git a/src/client/windows/crash_generation/minidump_generator.cc b/src/client/windows/crash_generation/minidump_generator.cc
index a0454cf..a977fc3 100644
--- a/src/client/windows/crash_generation/minidump_generator.cc
+++ b/src/client/windows/crash_generation/minidump_generator.cc
@@ -179,7 +179,7 @@ bool HandleTraceData::CollectHandleData(
stream_data->Reserved = 0;
std::copy(operations_.begin(),
operations_.end(),
-#if defined(_MSC_VER) && !defined(_LIBCPP_STD_VER)
+#if defined(_MSC_VER) && !defined(_LIBCPP_STD_VER) && _MSC_VER < 1951
stdext::checked_array_iterator<AVRF_HANDLE_OPERATION*>(
reinterpret_cast<AVRF_HANDLE_OPERATION*>(stream_data + 1),
operations_.size())

View File

@ -9,6 +9,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
add-algorithm-1.patch
avoid-checked-array-iterator.diff
)
if(VCPKG_HOST_IS_LINUX OR VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_ANDROID)

View File

@ -1,6 +1,7 @@
{
"name": "breakpad",
"version-date": "2024-02-16",
"port-version": 1,
"description": "a set of client and server components which implement a crash-reporting system.",
"homepage": "https://github.com/google/breakpad",
"license": "BSD-3-Clause",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e8447b574fa2cbca8b2343a609dcec8779ea7611",
"version-date": "2024-02-16",
"port-version": 1
},
{
"git-tree": "d0b9b0c733d8e82f954990673865df8768b5d8e7",
"version-date": "2024-02-16",

View File

@ -1478,7 +1478,7 @@
},
"breakpad": {
"baseline": "2024-02-16",
"port-version": 0
"port-version": 1
},
"brigand": {
"baseline": "1.3.0",