diff options
author | Yurii Zubrytskyi <zyy@google.com> | 2020-03-19 06:23:23 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-03-19 06:23:23 +0000 |
commit | 9cce14eb0e98a2052ae9ddd533caab38e7c8775f (patch) | |
tree | f3564212a23f0eb72ace5b97c9c0e9d7c7ea3df9 /services/incremental | |
parent | 793f73812d0b8addaff425d0a57864b93855c76c (diff) | |
parent | afaf6e9ee73b340c4fb2e98ea73b6c8c349a3e9d (diff) |
Merge "[incremental native lib] skip writing to zero byte files" into rvc-dev
Diffstat (limited to 'services/incremental')
-rw-r--r-- | services/incremental/IncrementalService.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/services/incremental/IncrementalService.cpp b/services/incremental/IncrementalService.cpp index 9a76e89ba20f..ed85b931c08e 100644 --- a/services/incremental/IncrementalService.cpp +++ b/services/incremental/IncrementalService.cpp @@ -1170,6 +1170,10 @@ bool IncrementalService::configureNativeBinaries(StorageId storage, std::string_ // If one lib file fails to be created, abort others as well break; } + // If it is a zero-byte file, skip data writing + if (uncompressedLen == 0) { + continue; + } // Write extracted data to new file std::vector<uint8_t> libData(uncompressedLen); |