Page 1 of 1

SplitWords can hang the server (POL097-2006-10-29)

Posted: Thu Dec 28, 2006 8:41 am
by Xandros
Hi,

if you use SplitWords with a custom delimiter on a string that begins
with that delimiter, it will permanently hang the server ("No clock
movement"). You can use the following text command to reproduce it:
program testbug()
var teststring := "* ";
var testarray := SplitWords(teststring, "*");

print (testarray);
endprogram
It will not hang if teststring is " *" or " * ".

Xandros

Posted: Fri Dec 29, 2006 1:43 am
by Shinigami
reviewed and problematic part found in code. but I can't test it here.

this part should hang server too if u use teststring := "abc ** def" (double * without any char between). can u check it for me? ;o)

thx, Shinigami

Posted: Fri Dec 29, 2006 7:27 am
by Xandros
Shinigami wrote: this part should hang server too if u use teststring := "abc ** def" (double * without any char between). can u check it for me? ;o)
You are correct, this also hangs the server.

Xandros

Posted: Fri Dec 29, 2006 1:26 pm
by Shinigami
ok, thx... fixed within cvs

Shinigami