This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc 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]

[Bug libc/1963] argument p not checked in io/fts.c:fts_load()


------- 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.


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