Page Index Toggle Pages: 1
Topic Tools
Normal Topic WinMPQ crashes at opening a w3x map (Read 4022 times)
RaveN
Peon
*
Offline



Posts: 2
Joined: Jul 22nd, 2009
WinMPQ crashes at opening a w3x map
Jul 22nd, 2009 at 4:17pm
Post Tools
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.
  
Back to top
 
IP Logged
 
ShadowFlare
Administrator/Lord of Nightmares
*****
Offline


The source of all chaos

Posts: 125
Location: The Sea of Chaos
Joined: May 11th, 2002
Re: WinMPQ crashes at opening a w3x map
Reply #1 - Jul 26th, 2009 at 10:14pm
Post Tools
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. Tongue
« Last Edit: Jul 27th, 2009 at 12:55am by ShadowFlare »  

-ShadowFlare

"My mind is my power. My power is my mind.
When uncorrupted by other elements, my mind is my pure power."

"I am a darkness beyond blackest pitch, deeper than the deepest night.
I am the Sea of Chaos. The source of all chaos.
That is how you describe me...
I am... the Lord of Nightmares."
Back to top
WWW  
IP Logged
 
RaveN
Peon
*
Offline



Posts: 2
Joined: Jul 22nd, 2009
Re: WinMPQ crashes at opening a w3x map
Reply #2 - Jul 29th, 2009 at 11:17am
Post Tools
Thanks for fix this problem.
Ok, try to find them earlier then "map protectors".  Wink
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Topic Tools