wc3edit.net

United Warcraft 3 map hacking!
It is currently April 25th, 2024, 4:02 am

All times are UTC




Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: July 17th, 2009, 3:32 pm 
Offline
Newcomer

Joined: May 28th, 2008, 2:21 pm
Posts: 14
WARNING! BY APPLYING THIS PATCH YOU MAY NOT BE ABLE TO PLAY SOME MAPS, I REPEAT YOU MAY NOT BE ABLE TO PLAY SOME MAPS.

hiveworkshop wrote:
In the old JASS compiler, a function with multiple returns was only type-safe on the last return. That is to say
Code:
function A takes handle h returns integer
    return h
endfunction


Would break, as h is not an integer. However,
Code:
function B takes handle h returns integer
    return h
    return 0
endfunction


Would compile fine, as 0 is an integer and only the last return is type-safe. As functions exit after they hit a return, this allowed JASSers to "convert" types, such as getting an integer index of a handle via the above function B (called H2I).

However, this could also be exploited with functions to convert code to and from integers, allowing people to write and execute arbitrary bytecode. As a side effect, you could do a buffer overflow attack on the VM, allowing arbitrary machine code to be executed, obviously posing a significant security threat.

Rather than fixing the buffer overflow problem, Blizzard decided to instead fix the return bug. This may seem minor, but the return bug was key to attaching information to objects; you could get an object's ID via H2I and then use a gamecache to store things to it. Additionally, you could also pass around objects as integers and convert them back via a reverse I2H function.

As a solution for the demand for this kind of function but still feeling the need to close the return bug, Blizzard introduced the hashtables and StringHash/GetHandleId functions above. While for most things they will suffice or even be better, this means that all maps using the old system need to be recoded to support them or they will not work.


--------------------------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------
WARCRAFT III: THE FROZEN THRONE VERSION HISTORY
--------------------------------------------------------------------------

--------------------------------------------------------------------------
Patch 1.24
--------------------------------------------------------------------------

PC WORLD EDITOR CHANGES

- Added new JASS hash table functions to replace the lost functionality from
fixing unsafe type casting.
- Hash Table - Save Item Handle
- Hash Table - Save Unit Handle
- ...
- Hash Table - Load Item Handle
- Hash Table - Load Unit Handle
- ...
- Hash Table - Get Handle ID

FIXES

- Fixed an exploit related to unsafe type casting that allowed users to
execute arbitrary code in maps.
- Fixed the JASS unsafe type casting exploit ("return bug").
- Fixed several World Editor crashes.
--------------------------------------------------------------------------------------------------------------------------------------

Just a heads up to the developers and players :D
I think its on the Westfall server already.


Sauce:
http://www.hiveworkshop.com/forums/late ... ls-134193/
http://www.hiveworkshop.com/forums/late ... ng-131095/
http://forums.battle.net/thread.html?to ... 1&sid=3000

there is a developers: "help" list that can be found at the blizzard forums here: http://forums.battle.net/thread.html?to ... 8&sid=3000


Top
 Profile  
 
PostPosted: July 17th, 2009, 3:46 pm 
Offline
Forum Staff
User avatar

Joined: June 9th, 2008, 9:51 am
Posts: 685
Location: Finland
Old stuff, see this link.
duckne55 wrote:
Sauce:


This made me laugh :D

_________________
Image


Top
 Profile  
 
PostPosted: July 17th, 2009, 5:16 pm 
Offline
Noob
User avatar

Joined: December 23rd, 2008, 11:27 pm
Posts: 1183
Location: Your Girlfriend's Pants.
Title: LSD.
So that's where he gets his sauce.

_________________
Image


Top
 Profile  
 
PostPosted: July 17th, 2009, 5:39 pm 
Offline
Newcomer

Joined: May 28th, 2008, 2:21 pm
Posts: 14
The more important part is probably the part before and after the changelog.
And i spelled it sauce on purpose.


Top
 Profile  
 
PostPosted: July 26th, 2009, 4:02 am 
Offline
Some Honorary Title

Joined: June 8th, 2007, 5:08 am
Posts: 1781
Title: Angry Bird
Not only a few maps cant be played.
A lot of maps can't be played when 1.24 is out.
Blizzard are dumb.


Top
 Profile  
 
PostPosted: July 26th, 2009, 4:10 am 
Offline
The Flying Cow!
User avatar

Joined: November 2nd, 2007, 10:34 pm
Posts: 2247
Location: Melbourne
initialD wrote:
Not only a few maps cant be played.
A lot of maps can't be played when 1.24 is out.
Blizzard are dumb.

Think about it. Lots of people haven't updated to 1.23, and are still on 1.20e, where collision is still possible, and more importantly, cache modification. If Blizzard gets rid of gamecaches, DotA will move to hash tables, and the 1.20e people will either stay with 6.61b forever, or update and keep up with the newest DotA.

Clever move, I like!

_________________
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!


Top
 Profile  
 
PostPosted: August 1st, 2009, 12:03 am 
Offline
Some Honorary Title

Joined: June 8th, 2007, 5:08 am
Posts: 1781
Title: Angry Bird
I meant, a lot of old games such as TD, RPG etc.... and many old AoS games. They all can't be played when 1.24 is out. And those games have already reach their final version the maker woundn't update them anymore.

For collisions problems. Now all those cache cheats are made for DotA and DotA alone. So icefrog could just remove all cache data on his game and then it's done. Why does he need to wait for patch 1.24?
Well, even if wc3 release 1.24, icefrog have to remove all cache data too. Isn't it the same.
There are hundreds of game in my wc3 folder that's using game caches. I bet I will just have to delete them all if I got to update it to 1.24?
Sighs. This is a bad solutions. But whatever. :?


Top
 Profile  
 
PostPosted: August 1st, 2009, 2:18 am 
Offline
Noob
User avatar

Joined: December 23rd, 2008, 11:27 pm
Posts: 1183
Location: Your Girlfriend's Pants.
Title: LSD.
initialD wrote:
I meant, a lot of old games such as TD, RPG etc.... and many old AoS games. They all can't be played when 1.24 is out. And those games have already reach their final version the maker woundn't update them anymore.

For collisions problems. Now all those cache cheats are made for DotA and DotA alone. So icefrog could just remove all cache data on his game and then it's done. Why does he need to wait for patch 1.24?
Well, even if wc3 release 1.24, icefrog have to remove all cache data too. Isn't it the same.
There are hundreds of game in my wc3 folder that's using game caches. I bet I will just have to delete them all if I got to update it to 1.24?
Sighs. This is a bad solutions. But whatever. :?


Yeah.. screws a lot of games over. I pray NotD: AM and Jurassic park EE still work.

_________________
Image


Top
 Profile  
 
PostPosted: August 1st, 2009, 12:39 pm 
Offline
Some Honorary Title

Joined: June 8th, 2007, 5:08 am
Posts: 1781
Title: Angry Bird
Quote:
- Fixed an exploit related to unsafe type casting that allowed users to
execute arbitrary code in maps.
- Fixed the JASS unsafe type casting exploit ("return bug").
- Fixed several World Editor crashes.


ok all I read about 1.24 is about fixing the "return bug" that's all. But I read somewhere else saying that the gamecache will be removed on patch 1.24. Could anyone please confirm about it? Will gamecache be removed, or not?
Please reply, I am now updating my cheat pack. So I need to know whether I need to remove gamecache or not.

All right checked. Gamecache will be remain I think. That chaged nothing. Collisions go on.
Without H2I people could simply use GetHandleId and continue to do their collided map.

No idea what is blizzard doing. :(


Top
 Profile  
 
PostPosted: August 1st, 2009, 1:45 pm 
Offline
Forum Staff
User avatar

Joined: June 9th, 2008, 9:51 am
Posts: 685
Location: Finland
Quote:
- Added new JASS hash table functions to replace the lost functionality from
fixing unsafe type casting.
- Hash Table - Save Item Handle
- Hash Table - Save Unit Handle
- ...
- Hash Table - Load Item Handle
- Hash Table - Load Unit Handle
- ...
- Hash Table - Get Handle ID


This will replace gamecaches.

_________________
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 18 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO


Privacy Policy Statement
Impressum (German)