Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mtk.cpp: Don't use memcpy() for overlapping copies
While uncompressing data in CmtkLoader::load(), memcpy() may be called with overlapping source and destination buffers as the byte count can be larger than the offset. The result of such a call is undefined, so copy byte for byte in a for loop instead. Fixes: adplug#110
- Loading branch information