"Virus Maps"
"Virus Maps"
Eh, not sure how many of you visit other WC3 sites, so in case you missed it:
http://www.thehelper.net/forums/announcement.php?f=42
If you want to know more:
http://www.wc3c.net/showthread.php?t=105677
So yeah, be careful which new custom maps you play.
http://www.thehelper.net/forums/announcement.php?f=42
If you want to know more:
http://www.wc3c.net/showthread.php?t=105677
So yeah, be careful which new custom maps you play.
Humans don't have the patience to wait even ten minutes for something!
- Fledermaus
- Keeper of the Keys
- Posts: 354
- Joined: Fri Feb 01, 2008 9:55 am
- Location: New Zealand
- Contact:
Re: "Virus Maps"
I'm really hoping blizz do 2 patches, the first that fixes the return bug, thus shutting down dota for like a week and then the second which reinstates it but also fixes the potential abuse.
Re: "Virus Maps"
Knew that was comming
- SetaSoujirou
- Letter Linguist
- Posts: 614
- Joined: Sun Feb 24, 2008 11:47 pm
Re: "Virus Maps"
Are there any good games that are updated regularly anyway?
A wild §eta has appeared!
*Twinkle* Lv. 1337
No I'm not a troll.
*Twinkle* Lv. 1337
No I'm not a troll.
- Loki
- Gypsy
- Posts: 1416
- Joined: Tue Jan 15, 2008 12:16 am
- Location: In a sea of paper cranes and a sky of paper planes.
- Contact:
Re: "Virus Maps"
Now that's an arbitrary question.
Let's do what comes naturally
I'll be waiting in Haven.
- Rising_Dusk
- Chosen of the Intargweeb
- Posts: 4031
- Joined: Sat Dec 15, 2007 1:50 pm
- Contact:
Re: "Virus Maps"
We all knew this was coming, but it doesn't really matter. The real scary thing is how integral H2I is to the way WC3 works on the whole right now. DotA would get hit really hard as they are still living with code from 2004 abusing H2I and I2H to kingdom-come. My maps would be salvageable, but it'd be an ugly month to fix them all. No fun.
Depends how needy you are, really. "Updated regularly" means that they are updated every few months, in which case there are plenty of them around. I can't speak for you, though.SetaSoujirou wrote:Are there any good games that are updated regularly anyway?
"I'll come to Florida one day and make you look like a damn princess." ~Hep
- Kurogamon
- Keeper of the Keys
- Posts: 395
- Joined: Tue Jan 13, 2009 11:09 pm
- Location: Blinded in the dark.
Re: "Virus Maps"
Damn... They sure find new holes every day. This just makes me more glad I've been playing it on a mac. So now you have to go through the code for your maps and fix what exactly?
And how hard would DotA be hit, assuming the second patch fled mentioned doesn't come?
And how hard would DotA be hit, assuming the second patch fled mentioned doesn't come?
Can you hear them?
- Rising_Dusk
- Chosen of the Intargweeb
- Posts: 4031
- Joined: Sat Dec 15, 2007 1:50 pm
- Contact:
Re: "Virus Maps"
If H2I is removed, nearly all of DotA's triggered spells would need to be remade as well as a substantial chunk of their systems. It would basically be like recoding the entire map, something I'll be honest in saying DotA could use.
"I'll come to Florida one day and make you look like a damn princess." ~Hep
- Kurogamon
- Keeper of the Keys
- Posts: 395
- Joined: Tue Jan 13, 2009 11:09 pm
- Location: Blinded in the dark.
Re: "Virus Maps"
About goddamned time. It might be worth playing if it actually had more than 20% scripted spells... Inhouse.
Can you hear them?
-
- Revenent of the Replies
- Posts: 332
- Joined: Thu Feb 14, 2008 3:27 pm
- Location: Hungary
- Contact:
Re: "Virus Maps"
Would someone tell me - as I'm quite unaware of stuff concerning JASS - what H2I and I2H are?
- Fledermaus
- Keeper of the Keys
- Posts: 354
- Joined: Fri Feb 01, 2008 9:55 am
- Location: New Zealand
- Contact:
Re: "Virus Maps"
Abusing the return "bug" in the jass compiler. It will only check if the last return statement in a function is correct.
^ This would give an error when you try to save the map because the handle, h, is not an integer and the function returns an integer.
^ This however, will compile because the last return statement is returning 0, an integer.
When the function is called, it will use the first return statement, essentially typecasting the handle, h, into an integer.
This can be useful for unit indexing and a world of other things but I wont go into that..
Code: Select all
function H2I takes handle h returns integer
return h
endfunction
Code: Select all
function H2I takes handle h returns integer
return h
return 0
endfunction
When the function is called, it will use the first return statement, essentially typecasting the handle, h, into an integer.
This can be useful for unit indexing and a world of other things but I wont go into that..
-
- Revenent of the Replies
- Posts: 332
- Joined: Thu Feb 14, 2008 3:27 pm
- Location: Hungary
- Contact:
Re: "Virus Maps"
So basically you fool the map into believing the code is correct, while it's not and use it to do whatever you please and this leads to the abuse.
Is that the case?
Is that the case?
Re: "Virus Maps"
I suck at syntax and even I can tell that it fails.
-
- Revenent of the Replies
- Posts: 332
- Joined: Thu Feb 14, 2008 3:27 pm
- Location: Hungary
- Contact:
Re: "Virus Maps"
Not at all.
Actually, this is brilliant. It's not the code's fault that it can be abused like this.
Actually, this is brilliant. It's not the code's fault that it can be abused like this.
Re: "Virus Maps"
So if a murderer gets off scot free because of a legal loophole, does describing that scenario as a brilliant maneuver justify the travesty? Nay I say, NAY!