From 55e853a6985c0d04a508f2f4407c94d2832f96d1 Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Fri, 16 Jan 2026 10:36:53 -0500 Subject: [PATCH] Avoid integer overflow in dynamic_riscv64.c Closes https://github.com/OpenMathLib/OpenBLAS/issues/5608. --- driver/others/dynamic_riscv64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/others/dynamic_riscv64.c b/driver/others/dynamic_riscv64.c index 726f76d790..321e0875f0 100644 --- a/driver/others/dynamic_riscv64.c +++ b/driver/others/dynamic_riscv64.c @@ -99,7 +99,7 @@ struct riscv_hwprobe { #define RISCV_HWPROBE_IMA_V (1 << 2) #define RISCV_HWPROBE_EXT_ZFH (1 << 27) #define RISCV_HWPROBE_EXT_ZVFH (1 << 30) -#define RISCV_HWPROBE_EXT_ZVFBFWMA (1 << 54) +#define RISCV_HWPROBE_EXT_ZVFBFWMA (1ULL << 54) #ifndef NR_riscv_hwprobe #ifndef NR_arch_specific_syscall