ShadowFlare's Realm
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl
ShadowFlare's Realm Forums >> Program Development >> WinMPQ crashes at opening a w3x map
http://sfsrealm.hopto.org/cgi-bin/yabb2/YaBB.pl?num=1248279472

Message started by RaveN on Jul 22nd, 2009, 5:17pm

Title: WinMPQ crashes at opening a w3x map
Post by RaveN on Jul 22nd, 2009, 5:17pm

WinMPQ crashes at opening a w3x map TheBlackRoad2.0.0.w3x
I can't assume why it occurs, but RMPQEx opens this map without any errors and warnings.
Please fix this.

Title: Re: WinMPQ crashes at opening a w3x map
Post by ShadowFlare on Jul 26th, 2009, 11:14pm

It looks like the map contains entries in the mpq hash table that were put there with the intention of making it crash if a program attempted to read it without checking the validity of a certain value.  Apparently the file listing function in my mpq library was not made to handle such invalid entries.

I've updated the function in my mpq library source code to deal with the invalid data.  The WinMPQ download has been updated with a new build of the library from that version of the code.

Personally, I prefer to have bugs fixed, rather than leaving them there just so that "map protectors" can exploit them. :P

Title: Re: WinMPQ crashes at opening a w3x map
Post by RaveN on Jul 29th, 2009, 12:17pm

Thanks for fix this problem.
Ok, try to find them earlier then "map protectors".  ;)

ShadowFlare's Realm » Powered by YaBB 2.2.1!
YaBB © 2000-2008. All Rights Reserved.