Hi,
p_filesize is of type long, but we assign an off_t. Before assignment,
check if it will fit. Also, check if fstat was successful or not.
Tobias
Index: pch.c
===
RCS file: /cvs/src/usr.bin/patch/pch.c,v
retrieving revision
On Sun, Nov 16, 2014 at 09:23:49PM +0100, Tobias Stoeckmann wrote:
p_filesize is of type long, but we assign an off_t. Before assignment,
check if it will fit.
Can we change p_filesize type to off_t instead?
bluhm
On Sun, Nov 16, 2014 at 09:39:32PM +0100, Alexander Bluhm wrote:
Can we change p_filesize type to off_t instead?
Definitely, but it takes closer looks for a review. Diff exists,
I was just not sure if it's worth to support patch files which are
larger than 2 GB on 32 bit systems.
Tobias