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

Fixed bugs, solved problems, and old reports.
Locked
Crazykitteh
Offline
Posts: 15
Joined: August 11th, 2011, 7:26 pm

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

Post 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

User avatar
Ollieboy
Trustee
Offline
Posts: 2343
Joined: May 23rd, 2011, 3:13 am
Location: Australia

Re: Colors Bug

Post by Ollieboy »

What happens if you kick someone with colours in game?
<TKB> Hit_Girl: zombies don't hurt
<TKB> Hit_Girl: weird.
<TKB> Hit_Girl was slain by Zombie

User avatar
boblol0909
SupOP
Offline
Posts: 314
Joined: June 24th, 2011, 10:27 pm

Re: Colors Bug

Post 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).

Crazykitteh
Offline
Posts: 15
Joined: August 11th, 2011, 7:26 pm

Re: Colors Bug

Post by Crazykitteh »

The ENTIRE server froze lol, i had to force restart it.

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

User avatar
boblol0909
SupOP
Offline
Posts: 314
Joined: June 24th, 2011, 10:27 pm

Re: Colors Bug

Post 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

User avatar
Intertoothh
Trustee
Offline
Posts: 1149
Joined: May 24th, 2011, 5:51 am

Re: Colors Bug

Post 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?
McLaughlinKid wrote:You put roar on everything don't you?

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Colors Bug

Post by fragmer »

If you are modding your copy of fCraft, I can't help you.

Crazykitteh
Offline
Posts: 15
Joined: August 11th, 2011, 7:26 pm

Re: Colors Bug

Post 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.

User avatar
fragmer
fCraft Developer
Offline
Posts: 1386
Joined: May 21st, 2011, 10:53 pm

Re: Colors Bug

Post 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.

User avatar
Bloody_Llama
Trustee
Offline
Posts: 324
Joined: May 26th, 2011, 6:35 pm

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

Post 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.
<FCB2> trevbev94: who made the perimid out of saind cause that is ausom
<FCB2> Pemalite+: druffin. 'cmere big boy for some lovin'

Locked