mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-26 04:56:49 +00:00
Merge pull request #10530 from Kelebek1/syncpt_oob
Fix incorrect syncpt id bounds check and potential out of bounds lookup
This commit is contained in:
commit
00b6bef65a
|
@ -64,7 +64,7 @@ void SyncpointManager::FreeSyncpoint(u32 id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SyncpointManager::IsSyncpointAllocated(u32 id) const {
|
bool SyncpointManager::IsSyncpointAllocated(u32 id) const {
|
||||||
return (id <= SyncpointCount) && syncpoints[id].reserved;
|
return (id < SyncpointCount) && syncpoints[id].reserved;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool SyncpointManager::HasSyncpointExpired(u32 id, u32 threshold) const {
|
bool SyncpointManager::HasSyncpointExpired(u32 id, u32 threshold) const {
|
||||||
|
|
Loading…
Reference in a new issue