Commit aeda480e authored by Zhiyi Zhang's avatar Zhiyi Zhang Committed by Alexandre Julliard

ntdll: Fix an out-of-bounds write (Coverity).

parent 6aef5f89
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment