WowDevTools / libwarcraft

All-in-one managed library for reading and writing World of Warcraft data files.
GNU General Public License v3.0
59 stars 25 forks source link

The last sector in a file is not checked properly for compression. #4

Closed Nihlus closed 8 years ago

Nihlus commented 8 years ago

".. Individual sectors in a compressed or imploded file may be stored uncompressed; this occurs if and only if the file data the sector contains could not be compressed by the algorithm(s) used (if the compressed sector size was greater than or equal to the size of the file data), and is indicated by the sector's size in SectorOffsetTable being equal to the size of the file data in the sector (which may be calculated from the FileSize)."