Nietsnie
August 10th, 2005, 20:30
Hi,
I'm attempting to remove the hardcoded connection limit from this software (it's restricted to 8).
I've been able to remove all the hardcoded checks, and I can have more than 8 clients connect, however, as soon as the 10th client connects, I segfault.
I think the reason for this is that they use a static buffer to keep track of clients... and this is hardcoded to 8 as well, so I get a buffer overflow.
I've been able to find the memory offset of where this structure is, and it belongs in the .bss region.
How would I increase the size of this buffer in order to support the client increase?
I'm attempting to remove the hardcoded connection limit from this software (it's restricted to 8).
I've been able to remove all the hardcoded checks, and I can have more than 8 clients connect, however, as soon as the 10th client connects, I segfault.
I think the reason for this is that they use a static buffer to keep track of clients... and this is hardcoded to 8 as well, so I get a buffer overflow.
I've been able to find the memory offset of where this structure is, and it belongs in the .bss region.
How would I increase the size of this buffer in order to support the client increase?