Hello,
iirc, the alignment is to sizeof(void*), which is 8.
I haven't met cases when the alignment is required to be different that the size of the pointer/memory address. Any particular reason for wolfssl to require that?
On 20.06.22 12:52, Richard Chan wrote:
Hi Daniel and kamailio users,
In my integration adventure of wolfSSL and kamailio I have encountered an alignment issue sometime causing segfaults.
May I enquire what is the alignment of shm_malloc and friends?
The wolfSSL library integration requires that ser_malloc and ser_realloc return values aligned on alignof(_max_align_t) which in the case of x86_64 is 16.
Thank you Shih-Ping
Kamailio - Users Mailing List - Non Commercial Discussions
- sr-users@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender! Edit mailing list options or unsubscribe: