[pacman-dev] [PATCH] Reject files larger than INT_MAX in read_sigfile.

Allan McRae allan at archlinux.org
Thu Jun 23 00:20:43 UTC 2016

On 19/06/16 02:41, Tobias Stoeckmann wrote:
> If signature files are larger than SIZE_MAX, not enough memory could
> be allocated for this file. The script repo-add rejects files which
> are larger than 16384 bytes, therefore handle these as errors here,
> too.
> While at it, I also rearranged the code to avoid a quite harmless
> TOCTOU race condition between stat() and fopen().
> Signed-off-by: Tobias Stoeckmann <tobias at stoeckmann.org>

Pulled to my patchqueue with subject line amended.


More information about the pacman-dev mailing list