mirror of
https://git.freebsd.org/ports.git
synced 2025-07-06 20:09:14 -04:00
Approved by: rene (mentor) Security: https://vuxml.freebsd.org/freebsd/310ca30e-a951-11ed-8314-a8a1599412c6.html
29 lines
1.5 KiB
C++
29 lines
1.5 KiB
C++
--- content/renderer/render_process_impl.cc.orig 2023-02-08 09:03:45 UTC
|
|
+++ content/renderer/render_process_impl.cc
|
|
@@ -46,7 +46,7 @@
|
|
#if BUILDFLAG(IS_WIN)
|
|
#include "base/win/win_util.h"
|
|
#endif
|
|
-#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(ARCH_CPU_X86_64)
|
|
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_64)
|
|
#include "v8/include/v8-wasm-trap-handler-posix.h"
|
|
#endif
|
|
|
|
@@ -154,7 +154,7 @@ RenderProcessImpl::RenderProcessImpl()
|
|
SetV8FlagIfNotFeature(features::kWebAssemblyCodeProtection,
|
|
"--no-wasm-write-protect-code-memory");
|
|
|
|
-#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(ARCH_CPU_X86_64)
|
|
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_64)
|
|
SetV8FlagIfFeature(features::kWebAssemblyCodeProtectionPku,
|
|
"--wasm-memory-protection-keys");
|
|
SetV8FlagIfNotFeature(features::kWebAssemblyCodeProtectionPku,
|
|
@@ -234,7 +234,7 @@ RenderProcessImpl::RenderProcessImpl()
|
|
SetV8FlagIfNotFeature(features::kWebAssemblyDynamicTiering,
|
|
"--no-wasm-dynamic-tiering");
|
|
|
|
-#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)) && defined(ARCH_CPU_X86_64)
|
|
+#if (BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_BSD)) && defined(ARCH_CPU_X86_64)
|
|
if (base::FeatureList::IsEnabled(features::kWebAssemblyTrapHandler)) {
|
|
base::CommandLine* const command_line =
|
|
base::CommandLine::ForCurrentProcess();
|