Mike Barton <[EMAIL PROTECTED]> wrote: > Right.. or else you forget to check the file pointer after fopen and > the game crashes... which also allows people to duplicate eq.
Now see that's something I never thought about. A bizzare 'bug' that's not directly related to the game itself. How common is this issue elsewhere in the server? I know it's perhaps a shuned topic but a little discussion on the typical exploits and the patches around them would be nice here. > Checking for multiple connections from the same IP is a good start, > but doesn't save you from DDOS. So basically, the only valid options > if you want to be safe are separating your socket and system file > descriptors by thread (relatively difficult) or keeping a null file > descriptor open (relatively simple). Well I've worked with threads before, so I would be curious how to use them to relieve this problem, but only perhaps as an example. > Actually, i"ve got file_open and file_close functions that handle the > null pointer, write the files to tmp location then copy it to the > correct location. Doing this helps always remember to use the null > file descriptor, and using a tmp file helps prevent file corruption if > you crash while saving something. > It's fairly simple, but maybe I can post some code if anyone's > interested.. I'm quite interested in this, code and post away if you would. Your knowage of the subject leads you to generate a better solution this way then not. Tony

