[PATCH 0/1] MR4503: ntdll: Fix an out-of-bounds write (Coverity).
25 Nov
25 Nov
3:18 p.m.
New subject: [PATCH 1/1] ntdll: Fix an out-of-bounds write (Coverity).
From: Zhiyi Zhang <zzhang(a)codeweavers.com> --- 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; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4503
832
Age (days ago)
832
Last active (days ago)
1 comments
2 participants
participants (2)
-
Zhiyi Zhang -
Zhiyi Zhang (@zhiyi)