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
|
@ -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 New Issue