Module: kamailio
Branch: master
Commit: bd82882807ad89c7564709db414ddbe26bd70728
URL: 
https://github.com/kamailio/kamailio/commit/bd82882807ad89c7564709db414ddbe26bd70728

Author: Jan Janak <[email protected]>
Committer: Jan Janak <[email protected]>
Date: 2019-04-20T12:18:52-04:00

More string buffer handling improvements in imc module

Let the compiler do the work of figuring out the size of the string
buffer being written to using the sizeof operator. Hopefully, this
will make the source code less error-prone and more Coverity friendly.

Properly handle all return values of snprintf. In particular, do not
fail silently if the function returns -1.

---

Modified: src/modules/imc/imc_cmd.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/bd82882807ad89c7564709db414ddbe26bd70728.diff
Patch: 
https://github.com/kamailio/kamailio/commit/bd82882807ad89c7564709db414ddbe26bd70728.patch


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to