mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-04 08:23:50 +00:00
1. MCNK sub-chunk bounds checks didn't account for the 8-byte header skip, so parseMCVT/parseMCNR could read up to 8 bytes past the validated buffer when sub-chunk headers are present (the common case). 2. parseMTEX/parseMMDX/parseMWMO used unbounded strlen on raw chunk data. A truncated file without a null terminator would read past the chunk boundary. Replaced with strnlen bounded by remaining size. Also removes dead debug code: empty magic buffer copy, cathedral WMO search, and Stormwind placement dump (which also had ::toupper UB). |
||
|---|---|---|
| .. | ||
| adt_loader.cpp | ||
| asset_manager.cpp | ||
| asset_manifest.cpp | ||
| blp_loader.cpp | ||
| dbc_layout.cpp | ||
| dbc_loader.cpp | ||
| loose_file_reader.cpp | ||
| m2_loader.cpp | ||
| mpq_manager.cpp | ||
| terrain_mesh.cpp | ||
| wdt_loader.cpp | ||
| wmo_loader.cpp | ||