-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make loader app load updated system image directly #3421
base: main
Are you sure you want to change the base?
Conversation
a22fb2c
to
d2d9121
Compare
Tested and verified on Linux |
} | ||
|
||
bool version_found = false; | ||
std::ifstream manifest_file(std::string(manifest_file_path.data())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use third_party/jsoncpp
to parse the manifest.json
.
Also adde unit tests to starboard/loader_app/slot_management_test.cc
1b4989d
to
34d92d3
Compare
b/344069914 b/328421395 Change-Id: I66734aed7b52bac4b60e823df4873c5dccc8c0f2
#include <sys/stat.h> | ||
|
||
#include <algorithm> | ||
#include <fstream> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my response in the chat, but avoid using <fstream>
, this will lead to leaks with current Starboard. In here, you can probably use starboard/common/file
to read in file content, and then pass it on to the JSON parser with a string in-memory.
b/344069914
b/328421395
Change-Id: I66734aed7b52bac4b60e823df4873c5dccc8c0f2