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(a)lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the sender!
Edit mailing list options or unsubscribe:
*
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training - Online: June 20-23, 2022
*
https://www.asipto.com/sw/kamailio-advanced-training-online/