This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [committed] Fix PR pch/14940 on hppa hpux and linux
- From: Richard Henderson <rth at redhat dot com>
- To: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 10 Dec 2004 18:31:46 -0800
- Subject: Re: [committed] Fix PR pch/14940 on hppa hpux and linux
- References: <20041130044119.GA1922@redhat.com> <200412110211.iBB2BtYI029704@hiauly1.hia.nrc.ca>
On Fri, Dec 10, 2004 at 09:11:55PM -0500, John David Anglin wrote:
> + if (read (fd, base, size) == -1)
> + return -1;
Do you need to protect against short reads? Or at least
if (read (fd, base, size) != size)
r~