Module: wine Branch: master Commit: aeda480e2a0a1b83dc738c3419b3827fd70ac197 URL: https://gitlab.winehq.org/wine/wine/-/commit/aeda480e2a0a1b83dc738c3419b3827...
Author: Zhiyi Zhang zzhang@codeweavers.com Date: Sat Nov 25 23:17:34 2023 +0800
ntdll: Fix an out-of-bounds write (Coverity).
---
dlls/ntdll/unix/system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/ntdll/unix/system.c b/dlls/ntdll/unix/system.c index a6f1382a5fa..5516831a7b7 100644 --- a/dlls/ntdll/unix/system.c +++ b/dlls/ntdll/unix/system.c @@ -874,7 +874,7 @@ static void fill_performance_core_info(void)
for(i = beg; i <= end; i++) { - if (i / 32 > performance_cores_capacity) + if (i / 32 >= performance_cores_capacity) { p = realloc(performance_cores, performance_cores_capacity * 2 * sizeof(ULONG)); if (!p) goto done;