Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mem: Don't use posix_memalign() and friends with custom wrapper.
If the application provides custom memory allocations functions via CRYPTO_set_mem_functions() then those should be used instead something else like posix_memalign(). The applications might verify alloc and free calls and pointers from posix_memalign() were never returned by the implementations. At least stunnel4 complains here. Use posix_memalign() or if aligned_alloc() only if the application did not provide a custom malloc() implementation. In case of a custom implementation use CRYPTO_malloc() and align the memory accordingly. Fixes: openssl#25678 Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
- Loading branch information