head 1.1; access; symbols; locks; strict; comment @ * @; 1.1 date 2026.06.08.13.12.47; author kikadf; state Exp; branches; next ; commitid Zzd0Bp9ZEsatPZIG; desc @@ 1.1 log @ www/chromium: update to 149.0.7827.53 * 149.0.7827.53 This update includes 429 security fixes. Below, we highlight fixes that were contributed by external researchers. Please see the Chrome Security Page for more information. * Fix build with wayland support: add missing include @ text @$NetBSD$ * Part of patchset to build chromium on NetBSD * Based on OpenBSD's chromium patches, and pkgsrc's qt5-qtwebengine patches --- third_party/lzma_sdk/src/C/CpuArch.c.orig 2026-05-28 23:24:11.000000000 +0000 +++ third_party/lzma_sdk/src/C/CpuArch.c @@@@ -854,6 +854,34 @@@@ BoolInt CPU_IsSupported_SHA1(void) { ret BoolInt CPU_IsSupported_SHA2(void) { return APPLE_CRYPTO_SUPPORT_VAL; } BoolInt CPU_IsSupported_AES (void) { return APPLE_CRYPTO_SUPPORT_VAL; } +#elif defined(__OpenBSD__) + +#include +#include +#include +#include + +BoolInt CPU_IsSupported_NEON() { return 1; } + +#define MY_HWCAP_CHECK_FUNC_2(name1, name2) \ + BoolInt CPU_IsSupported_ ## name1() { \ + int isar0_mib[] = { CTL_MACHDEP, CPU_ID_AA64ISAR0 }; \ + size_t len = sizeof(uint64_t); \ + uint64_t cpu_id = 0; \ + if (sysctl(isar0_mib, 2, &cpu_id, &len, NULL, 0) < 0) \ + return 0; \ + if (ID_AA64ISAR0_ ## name2(cpu_id) >= ID_AA64ISAR0_## name2 ##_BASE) \ + return 1; \ + return 0; \ + } + +#define MY_HWCAP_CHECK_FUNC(name) \ + MY_HWCAP_CHECK_FUNC_2(name, name) + +MY_HWCAP_CHECK_FUNC (CRC32) +MY_HWCAP_CHECK_FUNC (SHA1) +MY_HWCAP_CHECK_FUNC (SHA2) +MY_HWCAP_CHECK_FUNC (AES) #else // __APPLE__ @