Digital Paint Discussion Board

Development => Bugs, Feature Requests, and Feedback => Topic started by: T3RR0R15T on August 22, 2010, 02:04:42 PM

Title: Crash if i set too many letters
Post by: T3RR0R15T on August 22, 2010, 02:04:42 PM
The client crashes, if the cl_blockedwords setting has more than 239 letters.

Steps:
- open the console
- type in: cl_blockedwords 12345.... (up to 240 letters)
- press "enter"
- press "up"
crash


The original cl_blockedwords text is: rape,camp,liner,lining,intercourse,fuq,phuck,excrement,sh!,feces,detective,female dog,sexually promiscuous person,rooster,cigarette,walled,hack,cheat,horrible,terrible,nigg,kitty,girl thingy,very *friendly* person,be quiet,excretory opening,assmunch,ass,owned,ownd,suck,retarded,stupid donkey,stupid donkey,prick,douche,noob,pansy,very *friendly* person,plowed,ajoke,idiot,horribad,newbed,cigarette

Some words are replaced by the forum, but u can use it. It has more than 239 letters.
Title: Re: Crash if i set too many letters
Post by: jitspoe on September 08, 2010, 08:24:02 PM
I can't reproduce this crash.  I think it might have been fixed, however, it's still limited to 255 characters per line.  Wasn't there already a thread about this?
Title: Re: Crash if i set too many letters
Post by: T3RR0R15T on September 09, 2010, 11:21:35 AM
No, i said it in irc a few month ago.

Copy this, paste it into the console, press enter and then press "up":
Code: [Select]
cl_blockedwords rape,camp,liner,lining,intercourse,fuq,phuck,excrement,sh!,feces,detective,femaledog,sexuallypromiscuousperson,rooster,cigarette,walled,hack,cheat,horrible,terrible,nigg,kitty,girlthingy,very*friendly*person,bequiet,excretoryopening,assmunch,ass,owned,ownd,suck,retarded,stupiddonkey,stupiddonkey,prick,douche,noob,pansy,very*friendly*person,plowed,ajoke,idiot,horribad,newbed,cigarette
Title: Re: Crash if i set too many letters
Post by: jitspoe on September 14, 2010, 04:07:37 PM
Try it when the next build comes out.  As far as I can tell, it just truncates the line.
Title: Re: Crash if i set too many letters
Post by: T3RR0R15T on December 21, 2010, 07:53:15 AM
Crashes with b31 pretest too.
Title: Re: Crash if i set too many letters
Post by: jitspoe on December 21, 2010, 02:46:03 PM
Hm, it didn't happen in debug mode.  I guess I'll have to try it in release.
Title: Re: Crash if i set too many letters
Post by: jitspoe on February 15, 2011, 07:52:21 PM
I've fixed this for the next release (strcpy is not always your friend).
Title: Re: Crash if i set too many letters
Post by: T3RR0R15T on February 16, 2011, 11:35:41 AM
Ok, thanks.