bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

glibc's hurd/fd-read.c


From: Thomas Schwinge
Subject: glibc's hurd/fd-read.c
Date: Mon, 21 Jul 2008 16:22:30 +0200
User-agent: Mutt/1.5.11

Hello!

In `[glibc]/hurd/fd-read.c', a ``memcpy (buf, data, nread)'' is being
done.  However, is it guaranteed, that `nread' is always less or equal to
`*nbytes' (the size of `buf'), or should rather some ``MIN(nread,
*nbytes)'' be used?


The error of passing `nread' uninitialized was already fixed by Samuel at
the beginning of July, I noticed.


Regards,
 Thomas

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]