Go Back   FlashFXP Forums > > > >

Bug Reports If you discover any bugs that we are not aware of, please post it here so it may be corrected.

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-26-2003, 05:31 AM   #1
ADDiCT
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 517
Default files >2 GB list as negative

using beta 5.2.3r

a file of 2.378.785.791 bytes (2,21 GB) gets listed as -1916181505 bytes
(the limitation of a signed 32-bit value)
ADDiCT is offline   Reply With Quote
Old 10-26-2003, 12:31 PM   #2
Bratell
Member
FlashFXP Registered User
 
Join Date: Feb 2003
Posts: 64
Default Re: files >2 GB list as negative

Quote:
Originally posted by ADDiCT
using beta 5.2.3r

a file of 2.378.785.791 bytes (2,21 GB) gets listed as -1916181505 bytes
(the limitation of a signed 32-bit value)
I've also noted this. I'm running W2k NTFS if it's of any significance.
Bratell is offline   Reply With Quote
Old 10-26-2003, 12:32 PM   #3
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

That's odd.. it shows correct values for 8gb file for me (file that i use testing large transfers)
darkone is offline   Reply With Quote
Old 10-26-2003, 12:35 PM   #4
ADDiCT
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 517
Default

the file is on a FAT32 partition... but Windows Explorer and Serv-U show the correct filesize
ADDiCT is offline   Reply With Quote
Old 10-26-2003, 01:22 PM   #5
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

if (lpFindData->nFileSizeHigh <= 0)
{
// Filesize <= 32bits
Put_Buffer_Format((LPBUFFER)lpContext, "-%.9s 0 %-12.12s %-12.12s %8i %s %02d %02d:%02d %s\r\n",
pBuffer, szUserName, szGroupName,
lpFindData->nFileSizeLow,
Months[SystemTime.wMonth], SystemTime.wDay, SystemTime.wHour, SystemTime.wMinute,
lpFindData->cFileName);
}
else
{
// Filesize > 32bits
Put_Buffer_Format((LPBUFFER)lpContext, "-%.9s 0 %-12.12s %-12.12s %8I64i %s %02d %02d:%02d %s\r\n",
pBuffer, szUserName, szGroupName,
lpFindData->nFileSizeHigh * (0x100000000) + lpFindData->nFileSizeLow,
Months[SystemTime.wMonth], SystemTime.wDay, SystemTime.wHour, SystemTime.wMinute,
lpFindData->cFileName);
}

I really can't understand how that would result to negative value :\ (should only happend if loworder part of filesize is negative & highorder part is non-positive)
darkone is offline   Reply With Quote
Old 10-26-2003, 01:24 PM   #6
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Oops.. just noticed that it's a dword, not int :/
darkone is offline   Reply With Quote
Old 10-26-2003, 01:41 PM   #7
Unique
Senior Member
 
Join Date: Jan 2003
Posts: 231
Default

another bug squished
Unique is offline   Reply With Quote
Reply

Tags
32-bit, bytes, limitation, listed, negative, list, files, [fixed]

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:38 AM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)