]> git.ipfire.org Git - thirdparty/ccache.git/commit
Improve error handling of (de)compressors
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 6 Jun 2019 11:44:16 +0000 (13:44 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 6 Jun 2019 11:44:16 +0000 (13:44 +0200)
commit3f9105fbf183f7400021b081a3279c8feb6ea69e
tree64d90bbbf2084805cecb8223ee3a7cb36522e027
parent340c3f2b43c2bb696b31c5755d6072ac300870ed
Improve error handling of (de)compressors

Previously, some kinds of corruption were not detected by the zlib
decompressor since it didn’t check that it had reached the end of the
stream and therefore didn’t verify the Adler-32 checksum.
src/ccache.c
src/compr_none.c
src/compr_zlib.c
src/compression.h
src/decompr_none.c
src/decompr_zlib.c
src/result.c
unittest/test_compr_zlib.c