Mantis Bug Tracker

View Revisions: Issue #158 All Revisions ] Back to Issue ]
Summary 0000158: Crash with some $iif
Revision 2013-05-31 14:37 by administrator
Steps To Reproduce In this mess, notice the line:

if ($hget(pacclient,nick) == $9) drawdot -rn @pacman 255 2 $calc($3 $iif($5 == 39,+ $1 -1)) $iif(%dr != $null && $5 == 40,$calc(%h + %dr + 7),$calc(%h + $4 + $iif($5 =$iif())))

This is what the app restore for me, but while editing the code, it was originally:

if ($hget(pacclient,nick) == $9) drawdot -rn @pacman 255 2 $calc($3 $iif($5 == 39,+ $1 -1)) $iif(%dr != $null && $5 == 40,$calc(%h + %dr + 7),$calc(%h + $4 + |))

| is the cursor.

From there, I manage to get this (I disabled some options, it doesn't add the ')' automatically, you should be able to get there with any options enabled without crashing):

if ($hget(pacclient,nick) == $9) drawdot -rn @pacman 255 2 $calc($3 $iif($5 == 39,+ $1 -1)) $iif(%dr != $null && $5 == 40,$calc(%h + %dr + 7),$calc(%h + $4 + $iif(|$iif())))

Notice the cursor position, now type "$5 ==" or try to type i might say, because there, msldev should freeze and crash a few seconds later.
Revision 2013-05-31 01:50 by administrator
Steps To Reproduce In this fucking mess, notice the line:

if ($hget(pacclient,nick) == $9) drawdot -rn @pacman 255 2 $calc($3 $iif($5 == 39,+ $1 -1)) $iif(%dr != $null && $5 == 40,$calc(%h + %dr + 7),$calc(%h + $4 + $iif($5 =$iif())))

This is what the app restore for me, but while editing the code, it was originally:

if ($hget(pacclient,nick) == $9) drawdot -rn @pacman 255 2 $calc($3 $iif($5 == 39,+ $1 -1)) $iif(%dr != $null && $5 == 40,$calc(%h + %dr + 7),$calc(%h + $4 + |))

| is the cursor.

From there, I manage to get this (I disabled some options, it doesn't add the ')' automatically, you should be able to get there with any options enabled without crashing):

if ($hget(pacclient,nick) == $9) drawdot -rn @pacman 255 2 $calc($3 $iif($5 == 39,+ $1 -1)) $iif(%dr != $null && $5 == 40,$calc(%h + %dr + 7),$calc(%h + $4 + $iif(|$iif())))

Notice the cursor position, now type "$5 ==" or try to type i might say, because there, msldev should freeze and crash a few seconds later.


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker