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

vinesinha notifications at github.com
Thu Jul 5 16:12:24 CEST 2018


Kamailio version - 4.4
Compiled by source code 

uname -a (IP obfuscated)
Linux ip-XXXXXXXXXX 4.4.23-31.54.amzn1.x86_64 #1 SMP Tue Oct 18 22:02:09 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

In the code that I have for cfg_block_t

```
/*! \brief single memoy block that contains all the cfg values */
typedef struct _cfg_block {
	atomic_t	refcnt;		/*!< reference counter,
					the block is automatically deleted
					when it reaches 0 */
	unsigned char	vars[1];	/*!< blob that contains the values */
} cfg_block_t;
```

There's no padding to force the 8 byte alignment. 
Could that be the reason for it to fail ?

-- 
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-402735382
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180705/5ef4239b/attachment.html>


More information about the sr-dev mailing list