diff options
| author | 2020-11-26 01:27:24 -0800 | |
|---|---|---|
| committer | 2020-11-26 01:27:24 -0800 | |
| commit | 322349e8cc948d069f62a85a0c09a689c3e31796 (patch) | |
| tree | b11cb630a78fba7e611045462425ce929429a40c /src/core/hle | |
| parent | Merge pull request #4981 from ogniK5377/ioctl-ctrl (diff) | |
| parent | nvdrv, video_core: Don't index out of bounds when given invalid syncpoint ID (diff) | |
| download | yuzu-322349e8cc948d069f62a85a0c09a689c3e31796.tar.gz yuzu-322349e8cc948d069f62a85a0c09a689c3e31796.tar.xz yuzu-322349e8cc948d069f62a85a0c09a689c3e31796.zip | |
Merge pull request #4975 from comex/invalid-syncpoint-id
nvdrv, video_core: Don't index out of bounds when given invalid syncpoint ID
Diffstat (limited to 'src/core/hle')
| -rw-r--r-- | src/core/hle/service/nvdrv/syncpoint_manager.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/nvdrv/syncpoint_manager.h b/src/core/hle/service/nvdrv/syncpoint_manager.h index 4168b6c7e..d395c5d0b 100644 --- a/src/core/hle/service/nvdrv/syncpoint_manager.h +++ b/src/core/hle/service/nvdrv/syncpoint_manager.h | |||
| @@ -37,7 +37,7 @@ public: | |||
| 37 | * @returns The lower bound for the specified syncpoint. | 37 | * @returns The lower bound for the specified syncpoint. |
| 38 | */ | 38 | */ |
| 39 | u32 GetSyncpointMin(u32 syncpoint_id) const { | 39 | u32 GetSyncpointMin(u32 syncpoint_id) const { |
| 40 | return syncpoints[syncpoint_id].min.load(std::memory_order_relaxed); | 40 | return syncpoints.at(syncpoint_id).min.load(std::memory_order_relaxed); |
| 41 | } | 41 | } |
| 42 | 42 | ||
| 43 | /** | 43 | /** |
| @@ -46,7 +46,7 @@ public: | |||
| 46 | * @returns The upper bound for the specified syncpoint. | 46 | * @returns The upper bound for the specified syncpoint. |
| 47 | */ | 47 | */ |
| 48 | u32 GetSyncpointMax(u32 syncpoint_id) const { | 48 | u32 GetSyncpointMax(u32 syncpoint_id) const { |
| 49 | return syncpoints[syncpoint_id].max.load(std::memory_order_relaxed); | 49 | return syncpoints.at(syncpoint_id).max.load(std::memory_order_relaxed); |
| 50 | } | 50 | } |
| 51 | 51 | ||
| 52 | /** | 52 | /** |