[sr-dev] [kamailio/kamailio] integer overflow in 'core.shmmem' output (#2824)

Daniel-Constantin Mierla notifications at github.com
Wed Jan 12 17:15:49 CET 2022


The rcp supported int and double types, the values being stored over an int field. I added a few more conversion types for long/long long variants, storing them over the double field. The standard jsonrpc defines anyhow on 'number' (double) as a type.

binrpc had a further hack for double fields, being serialized as integer. I changed to serialize as long long.

kamctl didn't need any change as it prints the numbers coming in the formatted json. kamcmd print the double values as long long if they have no decimals.

Overall, the current master should print properly the shm stats with values over 4G. If not, open a new issue.

There were many changes, practically the rpc framework got support for new data types, therefore won't be backported.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2824#issuecomment-1011214855
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/2824/1011214855 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20220112/e3dea820/attachment.htm>


More information about the sr-dev mailing list