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

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

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
       No canned response available

 

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 Files:
   
   
Comment:
   

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    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.9