[Top][All Lists]

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

Re: Bug in linux_check (linux.c) ?

From: Andrew Clausen
Subject: Re: Bug in linux_check (linux.c) ?
Date: Thu, 9 Sep 2004 22:43:31 +1000
User-agent: Mutt/

On Thu, Sep 09, 2004 at 01:51:31AM +0200, K.G. wrote:
> done is of type 'int' while count is 'PedSector'
> I think that will loop until the end of the device on very large hard
> drive and with count >= 1<<31

You mean large buffer size?  I think there is unlikely to be a problem,
but I can't see any reason to not just s/int/PedSector, as you say.

> I havn't written a patch because I'm not sure how 'read' works on
> large files but I guess s/int done = 0;/PedSector done = 0;/ would be
> enough ?

I put in a typecast to (size_t).


reply via email to

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