Go Back   FlashFXP Forums > >

Programming Need help with C/C++/Delphi? Ask here and make us all laugh.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 09-29-2003, 09:32 AM   #1
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default UserId = -1 in ONLINEDATA

Sometime during a user's log-in, onlinedata returns -1 as UserId...
Is that expected ?

Is there other cases like that that would make subsequent calls to DC_xxx crash ?

Took a while to isolate the reason why onlinedata fetches crashed ioftpd.exe in certain occasion....
Mouton is offline  
Old 09-29-2003, 09:42 AM   #2
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

hmm I hadnt seen that one. Good that you mention it..
FTPServerTools is offline  
Old 09-29-2003, 11:27 AM   #3
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default Re: UserId = -1 in ONLINEDATA

Quote:
Originally posted by Mouton
Sometime during a user's log-in, onlinedata returns -1 as UserId...
Is that expected ?

Is there other cases like that that would make subsequent calls to DC_xxx crash ?

Took a while to isolate the reason why onlinedata fetches crashed ioftpd.exe in certain occasion....
Different compiler settings, could cause such behaviour (use 8byte [32bit] padding for structures) Online data returns -1, when user has not identified himself (as connection is killable at this point, by using WM_KILL)
darkone is offline  
Old 09-29-2003, 11:28 AM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Also, one should not expect that ioftpd allows use of uid/gid below 0 or larger than MAX_UID/MAX_GID at any circumstance. Most arrays are of dynamic size & without boundary checks... so buffer overrun/underrun might occur.
darkone is offline  
Closed Thread

Tags
crash, dc_xxx, isolate, onlinedata, userid

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 11:17 AM.

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