summaryrefslogtreecommitdiffstats
path: root/libutils/BlobCache.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Adding a build id check to blob cache.Michael Lentine2015-05-181-5/+14
| | | | | | | | | | | | | | Add a build id field to the header structure in blob cache. Add build id support with reading and writing the cache. When the cache gets written it writes the build id at the end of the header. When read it checks to see if there is a match between the current version and the version in the cache. If not, it invalidates the cache which would typically only occur during an ota update. Also remove blob cache from the host build. bug: 18262905 Change-Id: I753b1de1986703a4c1c8691b9d2bb533b2546143
* Fix write past end of memory.Christopher Ferris2014-10-071-9/+9
| | | | | | | | The computed flattened size of the blob does not match the size used by the flatten function when the last cached entry size is not 4 byte aligned. Bug: 17873145 Change-Id: I9f9fc102d4bde4681ae977b6de5f263aaaf56708
* BlobCache: fix uninitialized memoryAntoine Labour2014-07-281-1/+8
| | | | | | | | When flattening the BlobCache, we insert padding for alignment. Make sure to zero the padding bytes to have reproducible results. Bug: 16569863 Change-Id: Id39eac5e6a1687459eb6bc2074b1339393fce711
* libutils: turn on -WerrorMark Salyzyn2014-06-021-2/+2
| | | | | | | | | - Deal with some -Wunused issues - Override PRI macros (windows) - Revert use of PRI macros on off64_t (linux) - Deal with a gnu++11 complaince issue Change-Id: Ie66751293bd84477a5a6dfd8a57e700a16e36964
* libutils: BlobCache 64 bit compile issuesMark Salyzyn2014-04-171-13/+14
| | | | Change-Id: I60e9bddfff04f19834b83bdc26a83ca7173363c3
* move libs/utils to libutilsAlex Ray2013-08-021-0/+362
Change-Id: I6cf4268599460791414882f91eeb88a992fbd29d