diff --git a/starboard/loader_app/slot_management.cc b/starboard/loader_app/slot_management.cc index 4900cfd52c82..842a702bc232 100644 --- a/starboard/loader_app/slot_management.cc +++ b/starboard/loader_app/slot_management.cc @@ -140,7 +140,8 @@ bool ReadEvergreenVersion(std::vector* manifest_file_path, Json::Reader reader; Json::Value obj; - if (!reader.parse(std::string(file_data.data()), obj) || !obj[kVersionKey]) { + if (!reader.parse(std::string(file_data.data(), file_size), obj) || + !obj[kVersionKey]) { SB_LOG(WARNING) << "Failed to parse version from the manifest file at the " "installation path."; return false;