[sr-dev] [kamailio/kamailio] cfg_rpc updates changing variable values to large random numbers (#1583)

Daniel-Constantin Mierla notifications at github.com
Mon Jul 9 10:15:27 CEST 2018


The structure used a char[1] field at the end for a dynamic size array, the array was supposed to start at offset `sizeof(cfg_block_t) - 1`, respectively 4, which is aligned, but as the sizeof was rounded up (structure padded), practically, the array was no longer starting at the expected offset.

The latest versions of C standard allows use of `char[]` for dynamic size array, maybe we should switch to it. For now I will push this patch.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/1583#issuecomment-403397619
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180709/12e9c361/attachment.html>


More information about the sr-dev mailing list