Page 1 of 1

[FIXED] Typing color codes from console may crash clients.

Posted: August 13th, 2011, 10:35 am
by Crazykitteh
I was testing colors in Console today, and i wanted to see if you can use colors in the kick reasons, so i used & Color commands, It kicked the person with the colored reason, but crashed the server lol.

I know it was a bad idea :D but i was testing stuff lol :D

Btw i tried this 2 times, And dont try it at home lol it'll immediatly crash it :D

Re: Colors Bug

Posted: August 13th, 2011, 10:43 am
by Ollieboy
What happens if you kick someone with colours in game?

Re: Colors Bug

Posted: August 14th, 2011, 2:40 am
by boblol0909
That's because '&' in minecraft crashes it.

EDIT: or not, I just tested exactly what you said and nothing happened (meaning it worked, I saw colors, no one crashed).

Re: Colors Bug

Posted: August 15th, 2011, 6:04 pm
by Crazykitteh
The ENTIRE server froze lol, i had to force restart it.

did u do it through console?
and in the kick reason

Re: Colors Bug

Posted: August 15th, 2011, 8:53 pm
by boblol0909
Crazykitteh wrote:The ENTIRE server froze lol, i had to force restart it.

did u do it through console?
and in the kick reason
Yup, i typed from the console /kick boblol0909 &4cause i can

and on my wom screen it said

Kicked by (console):cause i can

Re: Colors Bug

Posted: August 16th, 2011, 8:06 am
by Intertoothh
Can you post what version your working with and on what os?
And do you get the crash each time you kick? or did it happend once?

Re: Colors Bug

Posted: August 16th, 2011, 7:18 pm
by fragmer
If you are modding your copy of fCraft, I can't help you.

Re: Colors Bug

Posted: August 18th, 2011, 2:46 pm
by Crazykitteh
i think it is the fcraft ui, ive had trouble with it just randomly crashing, but im using fcraft console, and it works better, even less memory useage.

Re: Colors Bug

Posted: August 18th, 2011, 6:08 pm
by fragmer
Ok I think I finally understood what you were trying to do. Minecraft clients do crash on certain malformed messages, especially if they involve color codes. Next version of fCraft has a new chat sanitizer that will make sure that a crash-causing message would never be sent to a player.

Re: [FIXED] Typing color codes from console may crash client

Posted: August 20th, 2011, 8:02 pm
by Bloody_Llama
Haha, frag, that bug has been around since the early days of fcraft. I remember when I was giving you bug reports on IRC mentioning this one.