PDA

View Full Version : UserId = -1 in ONLINEDATA


Mouton
09-29-2003, 09:32 AM
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....

FTPServerTools
09-29-2003, 09:42 AM
hmm I hadnt seen that one. Good that you mention it..

darkone
09-29-2003, 11:27 AM
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
09-29-2003, 11:28 AM
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.