summaryrefslogtreecommitdiff
path: root/www/chromium/files/patch-base_debug_stack__trace__posix.cc
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2020-04-13 10:37:15 +0000
committerRene Ladan <rene@FreeBSD.org>2020-04-13 10:37:15 +0000
commite3b53fa1271f0ecfc6d650148fa6a2ce7fd59689 (patch)
tree4282b6dacc1a8a20ec4bc04900a236b3e3fb61a0 /www/chromium/files/patch-base_debug_stack__trace__posix.cc
parentUpdate java plugin. (diff)
www/chromium: update to 81.0.4044.92
Currently the camera and geolocation do not work. Submitted by: Matthias Wolf Obtained from: https://github.com/gliaskos/freebsd-chromium/pull/173 Obtained from: https://github.com/gliaskos/freebsd-chromium/pull/174 MFH: 2020Q2 Security: https://www.vuxml.org/freebsd/6e3b700a-7ca3-11ea-b594-3065ec8fd3ec.html
Diffstat (limited to 'www/chromium/files/patch-base_debug_stack__trace__posix.cc')
-rw-r--r--www/chromium/files/patch-base_debug_stack__trace__posix.cc30
1 files changed, 11 insertions, 19 deletions
diff --git a/www/chromium/files/patch-base_debug_stack__trace__posix.cc b/www/chromium/files/patch-base_debug_stack__trace__posix.cc
index 38beddf996ab..f3b967c844e2 100644
--- a/www/chromium/files/patch-base_debug_stack__trace__posix.cc
+++ b/www/chromium/files/patch-base_debug_stack__trace__posix.cc
@@ -1,4 +1,4 @@
---- base/debug/stack_trace_posix.cc.orig 2019-09-09 21:55:05 UTC
+--- base/debug/stack_trace_posix.cc.orig 2020-03-16 18:39:41 UTC
+++ base/debug/stack_trace_posix.cc
@@ -35,7 +35,7 @@
#include <AvailabilityMacros.h>
@@ -9,23 +9,15 @@
#include "base/debug/proc_maps_linux.h"
#endif
-@@ -657,6 +657,11 @@ class SandboxSymbolizeHelper {
- // for the modules that are loaded in the current process.
- // Returns true on success.
- bool CacheMemoryRegions() {
+@@ -697,7 +697,11 @@ class SandboxSymbolizeHelper {
+ // Skip regions with empty file names.
+ continue;
+ }
+#if defined(OS_BSD)
-+ // TODO (rene) avoid link error, implement something?
-+ NOTIMPLEMENTED();
-+ return false;
-+#else
- // Reads /proc/self/maps.
- std::string contents;
- if (!ReadProcMaps(&contents)) {
-@@ -674,6 +679,7 @@ class SandboxSymbolizeHelper {
-
- is_initialized_ = true;
- return true;
++ if (region.path[0] == '-') {
++#else
+ if (region.path[0] == '[') {
+#endif
- }
-
- // Opens all object files and caches their file descriptors.
+ // Skip pseudo-paths, like [stack], [vdso], [heap], etc ...
+ continue;
+ }