Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 14:06

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: NT proudly presents JK2 1.02 q3msgboom work-around!
PostPosted: 09 Jan 2010 06:08 

Joined: 09 Jan 2010 05:50
Posts: 3
Hey everyone,
it seems that I managed to make a "work-around" patch for the q3msgboom bug.

On JK2 1.02, after executing the msgboom config few times in a row a server error occurs (Netchan_Process: length = 16385) and the server shutdowns. That happens because the server's maximum single message buffer is 16384, and execing the boom cfg few times adds all those characters into the packet - causes the buffer to be overflowed and raises said fatal error.

So I decided to look a bit in the assembly code to see how could I alter the code's behaviour to not show up a fatal error and screw us up, but just return with a zero in EAX instead. And I did it. The result is satisfying - instead of crashing the whole server, msgbooming client will overflow and drop leaving the server untouched.

For use with linux jk2ded 1.02 binaries only. Just use the lpatch.x86 executable to apply the patch to your jk2ded.

I don't take the responsibility if it does any damage, etc, etc.

Cheers,
NT


Attachments:
q3msgboom_linux.lpatch [1.62 KiB]
Downloaded 79 times
Top
 Profile  
 
 
 Post subject: Re: NT proudly presents JK2 1.02 q3msgboom work-around!
PostPosted: 09 Jan 2010 06:27 

Joined: 05 Oct 2007 01:20
Posts: 402
Location: Florida
didn't ouned do that and posted it on my forum?
:P


Top
 Profile  
 
 Post subject: Re: NT proudly presents JK2 1.02 q3msgboom work-around!
PostPosted: 09 Jan 2010 14:53 

Joined: 09 Jan 2010 05:50
Posts: 3
:O

Mind linking me there? :P


EDIT: Ah yes, I see it, but it was for Windows?


Top
 Profile  
 
 Post subject: Re: NT proudly presents JK2 1.02 q3msgboom work-around!
PostPosted: 09 Jan 2010 19:08 

Joined: 09 Jan 2010 05:50
Posts: 3
This fix uses another method (ouned's just disables the error message, while my fix returns 0 to do the server system housekeeping etc.)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron