summaryrefslogtreecommitdiff
path: root/src/adb_comp.c
AgeCommit message (Collapse)AuthorFilesLines
2021-08-23remove IS_ERR_OR_NULLTimo Teräs1-2/+2
In most places where pointer can be an 'error' it cannot be null pointer. Further, in those cases just calling PTR_ERR() is not enough to handle the null case. Simplify code by removing this case. If NULL case needs to be handled, it's better to add separate check and return fixed error code in that case.
2021-07-25adb: fix error handling of non-adb filesTimo Teräs1-2/+3
2021-07-22adb: make adb mmap/stream parser more united, add ADB_BLOCK_DATAXTimo Teräs1-0/+1
Harden the error checking of expected block types and their order. Add ADB_BLOCK_DATAX as reserved for >1GB blocks.
2021-07-22rework apk_istream_splice and apk_istream_teeTimo Teräs1-4/+1
- apk_istream_splice usage is converted to apk_stream_copy which is the newer variant. With caching enabled by default, this makes more sense mmapping or using separate buffers. - apk_istream_tee is reworked to write to apk_ostream, which simplifies quite a bit of various things
2021-07-22adbsign: support compressed adb filesTimo Teräs1-2/+4
2021-07-22adb: support seamless de/compression of adb filesTimo Teräs1-0/+48
Add compression header of adb files. Support uncompressed and deflate compression at this time.