Debian Codegraph @

tests/test128.pe

raw
1 #Tests buffer overflow condition and correct operation of StrSplit
2
3 ToString(StrSplit("a;bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",";",1));
4
5 x=StrSplit("aaa;bbb;ccc",";")
6 if (x[0]!="aaa")
7 Quit(1)
8 endif
9 if (x[1]!="bbb")
10 Quit(1)
11 endif
12 if (x[2]!="ccc")
13 Quit(1)
14 endif
15
16 Quit(0)