From: Mark Wooding Date: Sun, 22 Jan 2012 13:12:14 +0000 (+0000) Subject: catcrypt.c, catsign.c: Shorten chunk sizes. X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/commitdiff_plain/f52f2db067dc1388b16ab00ddb53e26a381a6e3e?hp=f52f2db067dc1388b16ab00ddb53e26a381a6e3e catcrypt.c, catsign.c: Shorten chunk sizes. The chunks are written with a 16-bit length, so the maximum chunk size is 2^16 - 1 = 65535. Unfortunately, catsign tried to write 65536-byte chunks, and catcrypt tried to cram a MAC tag in there too. The result is that chunk_write fails an assertion because the chunks are too big. No idea why this ever worked before. ---