diff options
| author | 2020-03-18 19:12:05 -0400 | |
|---|---|---|
| committer | 2020-03-18 19:12:05 -0400 | |
| commit | 76d6178e4aed8af76fa0218699e18f83e6e2baa6 (patch) | |
| tree | 6f7b3dfcfb9d43234847e6ccef603734f4f60b0b | |
| parent | Merge pull request #3530 from ReinUsesLisp/fix-clang (diff) | |
| parent | time_zone_content_manager: Fix out of bounds read (diff) | |
| download | yuzu-76d6178e4aed8af76fa0218699e18f83e6e2baa6.tar.gz yuzu-76d6178e4aed8af76fa0218699e18f83e6e2baa6.tar.xz yuzu-76d6178e4aed8af76fa0218699e18f83e6e2baa6.zip | |
Merge pull request #3534 from ReinUsesLisp/oob-time-zone
time_zone_content_manager: Fix out of bounds read
| -rw-r--r-- | src/core/hle/service/time/time_zone_content_manager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/service/time/time_zone_content_manager.cpp b/src/core/hle/service/time/time_zone_content_manager.cpp index 57b1a2bca..78d4acd95 100644 --- a/src/core/hle/service/time/time_zone_content_manager.cpp +++ b/src/core/hle/service/time/time_zone_content_manager.cpp | |||
| @@ -53,7 +53,7 @@ static std::vector<std::string> BuildLocationNameCache(Core::System& system) { | |||
| 53 | return {}; | 53 | return {}; |
| 54 | } | 54 | } |
| 55 | 55 | ||
| 56 | std::vector<char> raw_data(binary_list->GetSize()); | 56 | std::vector<char> raw_data(binary_list->GetSize() + 1); |
| 57 | binary_list->ReadBytes<char>(raw_data.data(), binary_list->GetSize()); | 57 | binary_list->ReadBytes<char>(raw_data.data(), binary_list->GetSize()); |
| 58 | 58 | ||
| 59 | std::stringstream data_stream{raw_data.data()}; | 59 | std::stringstream data_stream{raw_data.data()}; |