bugWeeChat - Bugs: bug #31531, weechat 0.3.3 on 32-bit machine...


bug #31531: weechat 0.3.3 on 32-bit machine incorrectly report filesize >4gb on receiving dcc

Submitted by:  None
Submitted on:  Wed 03 Nov 2010 10:17:24 AM UTC  
Category:  xfer plugin Severity:  3 - Normal
Item Group:  display Status:  Fixed
Privacy:  Public Assigned to:  Sebastien Helleu <flashcode>
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Closed Release:  0.3.3
IRC nick: 

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 03 Nov 2010 10:17:24 AM UTC, original submission:  

So when i trying to dcc get file larger than 4gb, weechat xfer windows incorrectly report the filesize as 4gb, while the actual filesize are 6.6gb.

Problem lies on 32-bit machine unsigned long value.
printf("%lun", ULONG_MAX); output 4294967295

printf("%d", sizeof(unsigned long)); output 4.

but with printf("%d", sizeof(unsigned long long)); output 8.

So i guess the workaround are using unsigned long long for 32-bit.



(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)
  • -email is unavailable- added by None (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-16 flashcode Open/ClosedOpen => Closed
    2010-11-10 flashcode Assigned toNone => flashcode
    2010-11-10 flashcode StatusNone => Fixed

    Back to the top

    Powered by Savane 3.7