Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
free_aligned: validate passed in pointer
Especially when replacing zlib with zlib-ng in old binaries, it is possible that the binary is mixing allocation and deallocation functions from different libraries. As not all old binaries can be rebuild, we should validate the passed in pointer and if the pointer doesn't seem to be allocated with alloc_aligned of zlib-ng, we should not try to adjust the pointer.
- Loading branch information