mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-12 02:08:45 +00:00
VIF: Fix out of bounds read caused by broken alignment logic
This commit is contained in:
committed by
lightningterror
parent
7a9af33f7d
commit
e1bbcfc414
@@ -361,7 +361,7 @@ _vifT int nVifUnpack(const u8* data)
|
||||
_nVifUnpack(idx, data, vifRegs.mode, isFill);
|
||||
}
|
||||
else
|
||||
vu1Thread.VifUnpack(vif, vifRegs, (u8*)data, (size + 4) & ~0x3);
|
||||
vu1Thread.VifUnpack(vif, vifRegs, (u8*)data, size);
|
||||
|
||||
vif.pass = 0;
|
||||
vif.tag.size = 0;
|
||||
|
||||
Reference in New Issue
Block a user