summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Hartmann <sultan@gentoo.org>2021-11-20 11:08:00 +0100
committerStephan Hartmann <sultan@gentoo.org>2021-11-20 11:08:00 +0100
commit2415a3c94f322bf84d310cf985b6e6081683ff92 (patch)
tree38c8cc213610111b24dbb52d50728bf8ad7edccd /www-client
parentsys-apps/lm-sensors: fix cross-compilation (diff)
downloadgentoo-2415a3c94f322bf84d310cf985b6e6081683ff92.tar.gz
gentoo-2415a3c94f322bf84d310cf985b6e6081683ff92.tar.bz2
gentoo-2415a3c94f322bf84d310cf985b6e6081683ff92.zip
www-client/chromium: add workaround for sandbox with glibc-2.34
Bug: https://bugs.gentoo.org/823857 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Stephan Hartmann <sultan@gentoo.org>
Diffstat (limited to 'www-client')
-rw-r--r--www-client/chromium/files/chromium-glibc-2.34.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-glibc-2.34.patch b/www-client/chromium/files/chromium-glibc-2.34.patch
index 0cb85b2ca516..64c03a6adae6 100644
--- a/www-client/chromium/files/chromium-glibc-2.34.patch
+++ b/www-client/chromium/files/chromium-glibc-2.34.patch
@@ -26,3 +26,25 @@ index ca353c4..5cdabcf 100644
// Only set an alternative stack if there isn't already one, or if the current
// one is too small.
+diff --git a/sandbox/linux/services/credentials.cc b/sandbox/linux/services/credentials.cc
+index ca6b595..1c1ee42 100644
+--- a/sandbox/linux/services/credentials.cc
++++ b/sandbox/linux/services/credentials.cc
+@@ -11,6 +11,7 @@
+ #include <stddef.h>
+ #include <stdint.h>
+ #include <stdio.h>
++#include <string.h>
+ #include <sys/syscall.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+@@ -100,7 +101,8 @@ bool ChrootToSafeEmptyDir() {
+ // TODO(crbug.com/1247458) Broken in MSan builds after LLVM f1bb30a4956f.
+ clone_flags |= CLONE_VM | CLONE_VFORK | CLONE_SETTLS;
+
+- char tls_buf[PTHREAD_STACK_MIN] = {0};
++ char tls_buf[PTHREAD_STACK_MIN];
++ memset(tls_buf, 0, PTHREAD_STACK_MIN);
+ tls = tls_buf;
+ #endif
+