Hi,

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:
Hi,

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,
Ian


Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to