Merge "trusty: fuzz: Poke the port of lazy-loaded TAs to load them." am: 8ac78838fc
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1637549 Change-Id: I881456a79d00eda98218618fab3013f29871f4c6
This commit is contained in:
commit
effabd1892
1 changed files with 9 additions and 1 deletions
|
|
@ -51,13 +51,21 @@ extern "C" int LLVMFuzzerInitialize(int* /* argc */, char*** /* argv */) {
|
|||
exit(-1);
|
||||
}
|
||||
|
||||
/* Make sure lazy-loaded TAs have started and connected to coverage service. */
|
||||
TrustyApp ta(TIPC_DEV, TRUSTY_APP_PORT);
|
||||
auto ret = ta.Connect();
|
||||
if (!ret.ok()) {
|
||||
std::cerr << ret.error() << std::endl;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
record = std::make_unique<CoverageRecord>(TIPC_DEV, &module_uuid, TRUSTY_APP_FILENAME);
|
||||
if (!record) {
|
||||
std::cerr << "Failed to allocate coverage record" << std::endl;
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
auto ret = record->Open();
|
||||
ret = record->Open();
|
||||
if (!ret.ok()) {
|
||||
std::cerr << ret.error() << std::endl;
|
||||
exit(-1);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue