mIRC Home    About    Download    Register    News    Help

Print Thread
#73565 04/03/04 01:19 AM
Joined: Oct 2003
Posts: 14
Q
qFox Offline OP
Pikka bird
OP Offline
Pikka bird
Q
Joined: Oct 2003
Posts: 14
if you do
/sockread &bvar
&bvar is not destroyed when the script is done.
even in the commandline, //echo -a $bvar(&bvar,0) will reply >0

noticed this behaviour in my script.
RedAlert (#mirc on ircnet) narrowed it down to this.

simple fix is to /bunset &bvar at the beginning of the event... smile

#73566 04/03/04 01:38 AM
Joined: Oct 2003
Posts: 14
Q
qFox Offline OP
Pikka bird
OP Offline
Pikka bird
Q
Joined: Oct 2003
Posts: 14
on a related note... why include ssl for /server and not for sockets frown

#73567 04/03/04 01:48 AM
Joined: Feb 2003
Posts: 2,812
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,812
Now if only this bug could be exploited and used outside of the /sockread command. I'm rather fond of the idea of global binary variables.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
#73568 04/03/04 02:22 PM
Joined: Oct 2003
Posts: 14
Q
qFox Offline OP
Pikka bird
OP Offline
Pikka bird
Q
Joined: Oct 2003
Posts: 14
it seems that it doesnt stay with just that one bvar, it seems as if it doesnt unset any binvar :\

and even though i dont mind binvars being global, i do rely on them being destroyed, and thus being cleared at the beginning of any script.

so if this changes, it should be well-announced, and it will likely disable alot of scripts...

oh and raccoon, a hack isnt that hard
write a little script that opens a socket to local host, and accepts it. sockwrite/sockread one byte into the binvar, close the whole deal, and you have a global binvar untill you bunset it...


#73569 17/03/04 06:36 PM
Joined: Dec 2002
Posts: 5,519
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,519
This has been fixed for the next version.


Link Copied to Clipboard