mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 02:29:59 +00:00
Merge pull request #3534 from ReinUsesLisp/oob-time-zone
time_zone_content_manager: Fix out of bounds read
This commit is contained in:
commit
76d6178e4a
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ static std::vector<std::string> BuildLocationNameCache(Core::System& system) {
|
||||||
return {};
|
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());
|
binary_list->ReadBytes<char>(raw_data.data(), binary_list->GetSize());
|
||||||
|
|
||||||
std::stringstream data_stream{raw_data.data()};
|
std::stringstream data_stream{raw_data.data()};
|
||||||
|
|
Loading…
Reference in a new issue