Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > ioFTPD beta > Bug Reports

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
Old 10-26-2003, 04:31 AM   #1
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 521
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, 11:31 AM   #2
Member
FlashFXP Registered User
 
Join Date: Feb 2003
Posts: 66
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, 11:32 AM   #3
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
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, 11:35 AM   #4
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Aug 2003
Posts: 521
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, 12:22 PM   #5
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
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, 12:24 PM   #6
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,234
Default

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

another bug squished
Unique is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 01:38 PM.