Author Topic: Crash if i set too many letters  (Read 3700 times)

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Crash if i set too many letters
« on: August 22, 2010, 12: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.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Crash if i set too many letters
« Reply #1 on: September 08, 2010, 06: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?

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Crash if i set too many letters
« Reply #2 on: September 09, 2010, 09: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

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Crash if i set too many letters
« Reply #3 on: September 14, 2010, 02:07:37 PM »
Try it when the next build comes out.  As far as I can tell, it just truncates the line.

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Crash if i set too many letters
« Reply #4 on: December 21, 2010, 06:53:15 AM »
Crashes with b31 pretest too.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Crash if i set too many letters
« Reply #5 on: December 21, 2010, 01:46:03 PM »
Hm, it didn't happen in debug mode.  I guess I'll have to try it in release.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: Crash if i set too many letters
« Reply #6 on: February 15, 2011, 06:52:21 PM »
I've fixed this for the next release (strcpy is not always your friend).

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Crash if i set too many letters
« Reply #7 on: February 16, 2011, 10:35:41 AM »
Ok, thanks.