eagleflo / mpyq

Python library for reading MPQ archives.
BSD 2-Clause "Simplified" License
100 stars 23 forks source link

Add size check for multi-sector blocks #8

Closed tw33dl3dee closed 13 years ago

tw33dl3dee commented 13 years ago

Multi-sector blocks can as well have COMPRESSED flag set, but with archived_size > size, in which case they need not be decompressed.

Example: any sc2 map file (.sc2ma), won't parse without this fix.

eagleflo commented 13 years ago

Thank you for your contribution! Merged.