Sscanf warning: String buffer overflow
#6

Quote:
Originally Posted by hellangel
Посмотреть сообщение
Duh, I know that, but as it's a command, there's always that MORON who will type dpfamdfsgposdifmbspofvibmxpocvibmxpoifgmspodifmgps odifmgpsodifmg just to fill in the entire space in the chatbox. This will overflow the array. So what? Would the only solution be increasing ALL of my strings' sizes to 128? I'm definitely not doing that and fucking my stack.
Have you ever coded something in a server before? Do you know how often I type messages over 128 characters? I'll answer that for you- VERY often! The maximum size of any strings sent to the client is 128 cells, you may as well allow people to use them all. Honestly, the main problem is creating a 5000 cell string and really only needing 100 cells of it.

See this for more information: https://sampforum.blast.hk/showthread.php?tid=55261
Reply


Messages In This Thread
Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 01:33
Re: Sscanf warning: String buffer overflow - by Hoborific - 19.12.2011, 01:58
Re: Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 02:02
Re: Sscanf warning: String buffer overflow - by Scenario - 19.12.2011, 02:06
Re: Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 02:08
Re: Sscanf warning: String buffer overflow - by Scenario - 19.12.2011, 02:11
Re: Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 02:15
Re: Sscanf warning: String buffer overflow - by Scenario - 19.12.2011, 02:17
Re: Sscanf warning: String buffer overflow - by hellangel - 19.12.2011, 02:28
Re: Sscanf warning: String buffer overflow - by Calgon - 19.12.2011, 02:35

Forum Jump:


Users browsing this thread: 2 Guest(s)