summaryrefslogtreecommitdiffstats
path: root/libdex/CmdUtils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix a few bugs introduced by the move to zip_archive.Narayan Kamath2013-12-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | - mmap failures because the output file was opened with O_WRONLY instead of O_RDWR - In two instances, we were passing the wrong handle to CloseArchive(ZipArchiveHandle). The issue is code like this: ZipArchiveHandle h; OpenArchive(&h); CloseArchive(&h); This compiles, but isn't correct. ZipArchiveHandle is a typedef for (void *) and the compiler won't complain because void** is also void*. Some of this code was written before the API was changed from CloseArchive(ZipArchiveHandle&) to CloseArchie(ZipArchiveHandle) but continued to compile even after the API change. I'll change the API in the follow up to catch errors like this at compile time. bug: 12173498 bug: 12176258 bug: 12178641 Change-Id: I71ac36654311f582b5ab633e1ed0d13e00053c84
* Revert "Revert "Use libziparchive for dalvik zip processing.""Narayan Kamath2013-12-171-4/+3
| | | | This reverts commit 52dacd58ac8735ffdcd6bbe952586a38ad70e6a5.
* Compile libdex as C++.Dan Bornstein2011-04-141-0/+229
The major-looking code changes were all just to unravel some gotos. Change-Id: I86f98a48b160f357ce93c87446bad5d705d5f05b