[SR-Users] pv_printf buffer overflow
Aman Agarwal
wizgen at gmail.com
Fri Jan 24 09:47:19 CET 2014
I am running Kamailio-4.1.0 and I am getting this error If I try to parse
JSON string longer than 1024 characters.
ERROR: <core> [pvapi.c:1338]: pv_printf(): no more space for spec value
ERROR: <core> [pvapi.c:1347]: pv_printf(): buffer overflow -- increase the
buffer size...
ERROR: <core> [sr_module.c:1696]: get_str_fparam(): Could not convert the
PV-formated string to str
ERROR: json [json_funcs.c:42]: json_get_field(): cannot get json string
value
I searched online for a fix and it was suggested to increase the
PV_PRINT_BUF_SIZE in pvar.c. The source code for Kamailio 4.1.0 does not
contain this file. I did not find this constant in other files too . Can
some please suggest how to increase the buffer size?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140124/207fa946/attachment.html>
More information about the sr-users
mailing list