mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: May 2003
Posts: 161
A
Vogon poet
OP Offline
Vogon poet
A
Joined: May 2003
Posts: 161
When the result of a $regsub is really long, it makes mIRC crash. eg: $regsub($str(x, 500), /x/g, Ashkrynt, %r)

Joined: Dec 2002
Posts: 1,922
O
Hoopy frood
Offline
Hoopy frood
O
Joined: Dec 2002
Posts: 1,922
Yes, that's a bug. Here's what qwerty said about it in an earlier post:
  • $regsub can also crash mirc, but for reasons that have nothing to do with the regex part: mirc doesn't check the length of text to be put in the %var specified in $regsub(), so it overflows, fex:
    $regsub($str(a,500),/a/g,aa,%a)


Link Copied to Clipboard