This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1963] argument p not checked in io/fts.c:fts_load()
- From: "heiko dot nardmann at secunet dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 1 Dec 2005 17:10:26 -0000
- Subject: [Bug libc/1963] argument p not checked in io/fts.c:fts_load()
- References: <20051201163208.1963.heiko.nardmann@secunet.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From heiko dot nardmann at secunet dot com 2005-12-01 17:10 -------
The same is of course true for parameter sp.
Another thing is that 'len' in this function is incorrectly declared as 'int'
instead of 'size_t'.
But what about the assignment
p->fts_namelen = len;
Since len is the result of strlen which is size_t (32bit) what happens with the
remaining 16bit? u_short (which is the type of fts_namelen) is only 16bit.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1963
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.