mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 23:53:19 +00:00
[TASKMGR] Fix a heap corruption bug (#4311)
Improper adjustment of the array index in graphctl.c, introduced in PR #4141 lead to an off-by-one heap corruption.
This commit is contained in:
parent
5972c0c18b
commit
f8faa0b660
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ GraphCtrl_AddPoint(PTM_GRAPH_CONTROL inst, BYTE val0, BYTE val1)
|
|||
t = inst->PointBuffer;
|
||||
Prev0 = *(t + inst->CurrIndex);
|
||||
Prev1 = *(t + inst->CurrIndex + inst->NumberOfPoints);
|
||||
if (inst->CurrIndex < inst->NumberOfPoints)
|
||||
if (inst->CurrIndex < inst->NumberOfPoints - 1)
|
||||
{
|
||||
inst->CurrIndex++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue