On Mon, 21 Feb 2005, davep wrote:

Running Squid-2.5.STABLE4 (plus security patches, Mandrake 10.0 distribution).

When accessing an FTP site containing large files (typically DVD images) the file size is reported as negative. For example:

Indeed. The famous 2 GB barrier of 32-bit systems. (2^31-1 == 2GB - 1, +1 and it becomes -2GB)


Is there any fix, or plans for one?

The goal is that Squid-3.0 will handle this right on 64-bit platforms or when --enable-large-files is used on the supported 32-bit platforms, but there still remains some cleanup to ensure file sizes are never type casted to int either explicitly or implicitly by the compiler.


It is a lot more to it than only fixing the FTP directory listings. There is very many assumptions in Squid that the object size in bytes fits within one int (CPU default machine word, usually 32 bits).

Regards
Henrik

Reply via email to