diff options
author | 2013-10-29 15:28:08 -0700 | |
---|---|---|
committer | 2014-01-27 10:31:10 -0800 | |
commit | e1aa223657dd1def8609b377afa86a024bfd4e14 (patch) | |
tree | 08607c4499d19e653f70c710c67ea59340372f84 /libs/androidfw/ObbFile.cpp | |
parent | 16c4d154dca43c662571129af31b27433b919a32 (diff) |
Re-apply androidfw fixes lost by the directory rearrangement.
Assignment to wrong variable in libs/androidfw/AssetManager.cpp.
https://code.google.com/p/android/issues/detail?id=61560
Missing delete[]s in libs/androidfw/ObbFile.cpp.
https://code.google.com/p/android/issues/detail?id=61549
Change-Id: I24e6867284d70a7793d78e62d1a836cbee310fb0
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
-rw-r--r-- | libs/androidfw/ObbFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/androidfw/ObbFile.cpp b/libs/androidfw/ObbFile.cpp index 21e06c8db5cd..ec59f0666c02 100644 --- a/libs/androidfw/ObbFile.cpp +++ b/libs/androidfw/ObbFile.cpp @@ -133,7 +133,7 @@ bool ObbFile::parseObbFile(int fd) { lseek64(fd, fileLength - kFooterTagSize, SEEK_SET); - char *footer = new char[kFooterTagSize]; + char footer[kFooterTagSize]; actual = TEMP_FAILURE_RETRY(read(fd, footer, kFooterTagSize)); if (actual != kFooterTagSize) { ALOGW("couldn't read footer signature: %s\n", strerror(errno)); |