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 pluginSeverity: 3 - Normal
Item Group: displayStatus: Fixed
Privacy: PublicAssigned to: Sebastien Helleu <flashcode>
Originator Name: Originator Email: -unavailable-
Open/Closed: ClosedRelease: 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.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 16 Jan 2011 10:09:07 AM UTCflashcodeOpen/ClosedOpen=>Closed
    Wed 10 Nov 2010 03:41:01 PM UTCflashcodeAssigned toNone=>flashcode
    Wed 10 Nov 2010 03:41:00 PM UTCflashcodeStatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1