Browse Source
Merge pull request #3534 from ReinUsesLisp/oob-time-zone
time_zone_content_manager: Fix out of bounds read
pull/15/merge
bunnei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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()}; |
|
|
|
|