mirror of https://github.com/PCSX2/pcsx2.git
microvu: fix ASAN container-overflow in mVUsetupRange
This commit is contained in:
parent
158e67cf6d
commit
4c267c4206
|
@ -81,11 +81,9 @@ void mVUsetupRange(microVU& mVU, s32 pc, bool isStartPC)
|
||||||
if (mVUrange.start <= cur_pc)
|
if (mVUrange.start <= cur_pc)
|
||||||
{
|
{
|
||||||
mVUrange.end = cur_pc;
|
mVUrange.end = cur_pc;
|
||||||
s32& rStart = mVUrange.start;
|
s32 rStart = mVUrange.start;
|
||||||
s32& rEnd = mVUrange.end;
|
s32 rEnd = mVUrange.end;
|
||||||
std::deque<microRange>::iterator it(ranges->begin());
|
for (auto it = ranges->begin() + 1; it != ranges->end();)
|
||||||
it++;
|
|
||||||
for (;it != ranges->end();)
|
|
||||||
{
|
{
|
||||||
if (((it->start >= rStart) && (it->start <= rEnd)) || ((it->end >= rStart) && (it->end <= rEnd))) // Starts after this prog but starts before the end of current prog
|
if (((it->start >= rStart) && (it->start <= rEnd)) || ((it->end >= rStart) && (it->end <= rEnd))) // Starts after this prog but starts before the end of current prog
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue