The series is part of Johannes Schindelin's effort to bring Git for Windows' Coverity reports down to zero, after several earlier series were merged. v1 had five patches. They guard get_path_prefix() in archive-tar against zero-length input, use size_t for a byte position in the http code's fwrite_sha1_file(), reject very large byte counts in the read/write wrappers, and add multiplication-overflow macros for relative date parsing.

The wrapper patches changed most in response to review. Patches carry "Helped-by: Phillip Wood". read_in_full() returns ssize_t, which cannot represent every file size, so a new read_in_full_or_error() returns a Boolean for callers that only want all bytes or an error. Callers that need the byte count keep read_in_full() but now fail early if the request exceeds what ssize_t can hold.

write_in_full() accumulated its count in an ssize_t that can overflow for valid size_t inputs. Since it either writes everything or fails, the patch makes it return a status instead.

The v2 cover letter says most read_in_full() callers and all write_in_full() callers are no longer restricted by the range of ssize_t. The signed_mult_overflows() and mult_overflows() macros have been dropped. The cover letter also says something about approxidate() that is cut off in the excerpts.

Phillip Wood, Junio Hamano, Patrick Steinhardt, Harald Nordgren and Simon Richter took part in the thread. The excerpts do not show their comments on v2.