[Top][All Lists]

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

Re: Bug in wget 1.21.1 csum_btes_sum on 32-bit systems

From: Tim Rühsen
Subject: Re: Bug in wget 1.21.1 csum_btes_sum on 32-bit systems
Date: Sat, 16 Jan 2021 20:11:31 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0


yeah, we are now moving to C11 as our portability (source code) library 'gnulib' did this step. There is plenty of cleanups needed in the code base. You stepped over a regression introduced during that work.

Could you retry with latest code from the git repo ?

Regards, Tim

On 15.01.21 13:47, Ian Reed wrote:

When using the command line parameter -Q 8071204435 with wget I am getting this 
error - Invalid byte value '8071204435' on a 32-bit ARM system.
I have traced this message to cmd_bytes_sum in src/init.c line 1374.

In this function it is failing the LONG_MAX test. However, the result is 
assigned to the variable place which is an int64_t.

Unless there's a reason I can't see for limiting the size of the result to the 
32-bit maximum on a 32-bit system then this looks like a word size issue and 
should be checking against INT64_MIN and INT64_MAX or similar.

Hope this helps,

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

reply via email to

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