lkml.org 
[lkml]   [1999]   [Apr]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: truncate("x", -1)
On Mon, Apr 19, 1999 at 02:01:08PM +0800, David Luyer wrote:

> The argument to [f]truncate is meant to be a size_t not a ssize_t,
> so probably this is a signed/unsigned bug.

There at least two other places where the kernel uses an int instead
of an size_t (unsigned). I think we've been lucky so far that nothing
bad has happened and for various reason that these other places
haven't caused problems... glibc2 has the right API but libc5
doesn't.

I think I'll look at getting some patches for these two other places
out later today... I don't think anything will break and it might
save us some grief.





-cw


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.038 / U:0.540 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site