This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed] Fix PR pch/14940 on hppa hpux and linux


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]