diff options
author | Robert Nagy <robert@openbsd.org> | 2022-04-21 21:09:02 +0000 |
---|---|---|
committer | Rene Ladan <rene@FreeBSD.org> | 2022-04-28 07:47:56 +0000 |
commit | 4eb083eab9fd6439de7fd85552c136140a5c3ad9 (patch) | |
tree | ae08ac637056c2e74cba8e00a08cc3b24dd3d877 /www/chromium/files/patch-base_debug_debugger__posix.cc | |
parent | de6ddae04aea36b08b8732348ec4a37822b61f1b (diff) | |
download | ports-4eb083eab9fd6439de7fd85552c136140a5c3ad9.tar.gz ports-4eb083eab9fd6439de7fd85552c136140a5c3ad9.zip |
www/chromium: update to 101.0.4951.41
Security: 26f2123b-c6c6-11ec-b66f-3065ec8fd3ec
Diffstat (limited to 'www/chromium/files/patch-base_debug_debugger__posix.cc')
-rw-r--r-- | www/chromium/files/patch-base_debug_debugger__posix.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/www/chromium/files/patch-base_debug_debugger__posix.cc b/www/chromium/files/patch-base_debug_debugger__posix.cc index 01e51311eb4a..447811370c92 100644 --- a/www/chromium/files/patch-base_debug_debugger__posix.cc +++ b/www/chromium/files/patch-base_debug_debugger__posix.cc @@ -1,6 +1,6 @@ ---- base/debug/debugger_posix.cc.orig 2022-02-28 16:54:41 UTC +--- base/debug/debugger_posix.cc.orig 2022-04-21 18:48:31 UTC +++ base/debug/debugger_posix.cc -@@ -36,6 +36,10 @@ +@@ -35,6 +35,10 @@ #include <sys/sysctl.h> #endif @@ -11,7 +11,7 @@ #if BUILDFLAG(IS_FREEBSD) #include <sys/user.h> #endif -@@ -96,32 +100,51 @@ bool BeingDebugged() { +@@ -95,32 +99,51 @@ bool BeingDebugged() { // Caution: struct kinfo_proc is marked __APPLE_API_UNSTABLE. The source and // binary interfaces may change. @@ -24,7 +24,7 @@ +#endif #if BUILDFLAG(IS_OPENBSD) - if (sysctl(mib, base::size(mib), NULL, &info_size, NULL, 0) < 0) + if (sysctl(mib, std::size(mib), NULL, &info_size, NULL, 0) < 0) return -1; mib[5] = (info_size / sizeof(struct kinfo_proc)); @@ -34,11 +34,11 @@ + return being_debugged; + } + -+ int sysctl_result = sysctl(mib, base::size(mib), info, &info_size, NULL, 0); ++ int sysctl_result = sysctl(mib, std::size(mib), info, &info_size, NULL, 0); #endif +#if !BUILDFLAG(IS_OPENBSD) - int sysctl_result = sysctl(mib, base::size(mib), &info, &info_size, NULL, 0); + int sysctl_result = sysctl(mib, std::size(mib), &info, &info_size, NULL, 0); +#endif DCHECK_EQ(sysctl_result, 0); if (sysctl_result != 0) { |