[OpenSIPS-Devel] [opensips] presence module: move strlen check to avoid pkg_malloc(0) (#831)

James Criscuolo notifications at github.com
Fri Mar 18 14:59:51 CET 2016


We made this change and found it to greatly improve reliability in our production environment. I also believe this was the intention of the code to begin with, but I could be wrong there. In general, it seems malloc'ing size 0 eventually leads to problems.
You can view, comment on, or merge this pull request online at:

  https://github.com/OpenSIPS/opensips/pull/831

-- Commit Summary --

  * presence module: move strlen check to avoid pkg_malloc(0)

-- File Changes --

    M modules/presence/notify.c (12)

-- Patch Links --

https://github.com/OpenSIPS/opensips/pull/831.patch
https://github.com/OpenSIPS/opensips/pull/831.diff

---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/OpenSIPS/opensips/pull/831
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20160318/52a2e042/attachment.htm>


More information about the Devel mailing list