CVSROOT: /cvs Module name: src Changes by: es...@cvs.openbsd.org 2023/04/29 04:08:18
Modified files: usr.bin/signify: zsig.c Log message: as noticed by sdk@, a package with an exact numbers of 64K chunks would produce a spurious error (so 1 chance in 2^26) It's like read/write: we need to recognize 0 as EOF and not try to checksum a non-existing block. while there, also make sure that we got all the signed blocks at EOF before exit(0) Note that none of those two bugs affect the actual security of signed packages: the basic assertion that only signed data gets written through the pipe is still 100% valid ! but it's a good idea to not emit spurious messages for valid files, and also to recognize truncated files ! okay tb@ (thanks a lot)