diff options
author | bunnei <bunneidev@gmail.com> | 2020-03-19 00:12:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-19 00:12:05 +0100 |
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 yuzu-76d6178e4aed8af76fa0218699e18f83e6e2baa6.tar.gz yuzu-76d6178e4aed8af76fa0218699e18f83e6e2baa6.tar.bz2 yuzu-76d6178e4aed8af76fa0218699e18f83e6e2baa6.tar.lz yuzu-76d6178e4aed8af76fa0218699e18f83e6e2baa6.tar.xz yuzu-76d6178e4aed8af76fa0218699e18f83e6e2baa6.tar.zst yuzu-76d6178e4aed8af76fa0218699e18f83e6e2baa6.zip |
-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) { return {}; } - std::vector<char> raw_data(binary_list->GetSize()); + std::vector<char> raw_data(binary_list->GetSize() + 1); binary_list->ReadBytes<char>(raw_data.data(), binary_list->GetSize()); std::stringstream data_stream{raw_data.data()}; |