The code assumes that all characters require escaping and the maximum input string length right now is 1023. When the ss7ops module is used the length of a IAM is longer than this. Increase the static buffer to 8k. This increases the memory usage of each process by 7168 bytes. You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/899
-- Commit Summary --
* sqlops: Increase size of static escape buffer
-- File Changes --
M src/modules/sqlops/sql_trans.c (2)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/899.patch https://github.com/kamailio/kamailio/pull/899.diff
Maybe making the size a modparam and allocating the buffer in mod_init will make it more flexible and easier to tune for larger buffer needs.
Alternative implementation pushed to master branch.
Closed #899.
Sorry, I didn't notice the feedback and just rebased my branch. Yes. Your approach to make it runtime configurable is a lot better! Thank you.