aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKelebek1 <eeeedddccc@hotmail.co.uk>2023-05-31 19:10:00 +0100
committerKelebek1 <eeeedddccc@hotmail.co.uk>2023-05-31 19:10:00 +0100
commitf50f69f07c8d595d718ee14db1ef1b525cbfb549 (patch)
treec2b52394060191c1ff1ce33be873d4d0c666baa7 /src
parent5e35454e43227f91dcffe0f555c3aa50091cf785 (diff)
Fix incorrect id check and potential out of bounds lookup
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/nvdrv/core/syncpoint_manager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp b/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp
index aba51d280a..c4c4c25932 100644
--- a/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp
+++ b/src/core/hle/service/nvdrv/core/syncpoint_manager.cpp
@@ -64,7 +64,7 @@ void SyncpointManager::FreeSyncpoint(u32 id) {
}
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 {