diff options
| author | 2018-07-16 20:57:43 +0000 | |
|---|---|---|
| committer | 2018-07-16 20:57:43 +0000 | |
| commit | cf0b12711057a2a23dc08f1ac6acfe67892b945d (patch) | |
| tree | f06788c3b9801c4a89e99c1182a00c4ca2e96e7e /libs/androidfw/LoadedArsc.cpp | |
| parent | c450d1401e68cc2492153e4aae6878c5003ce5db (diff) | |
| parent | 28e663cbed28fb6c8c8dec0849e0277daf67651b (diff) | |
Merge "Loosen resource file verification" into pi-dev
Diffstat (limited to 'libs/androidfw/LoadedArsc.cpp')
| -rw-r--r-- | libs/androidfw/LoadedArsc.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/libs/androidfw/LoadedArsc.cpp b/libs/androidfw/LoadedArsc.cpp index 04d506a2d71c..c2740c9fbaa4 100644 --- a/libs/androidfw/LoadedArsc.cpp +++ b/libs/androidfw/LoadedArsc.cpp @@ -560,7 +560,9 @@ std::unique_ptr<const LoadedPackage> LoadedPackage::Load(const Chunk& chunk, if (iter.HadError()) { LOG(ERROR) << iter.GetLastError(); - return {}; + if (iter.HadFatalError()) { + return {}; + } } // Flatten and construct the TypeSpecs. @@ -641,7 +643,9 @@ bool LoadedArsc::LoadTable(const Chunk& chunk, const LoadedIdmap* loaded_idmap, if (iter.HadError()) { LOG(ERROR) << iter.GetLastError(); - return false; + if (iter.HadFatalError()) { + return false; + } } return true; } @@ -673,7 +677,9 @@ std::unique_ptr<const LoadedArsc> LoadedArsc::Load(const StringPiece& data, if (iter.HadError()) { LOG(ERROR) << iter.GetLastError(); - return {}; + if (iter.HadFatalError()) { + return {}; + } } // Need to force a move for mingw32. |