[OpenSIPS-Devel] [OpenSIPS/opensips] fad349: presence_dialoginfo: Fix bounds checking by using ...

Walter Doekes walter+github at wjd.nu
Wed Mar 26 19:01:00 CET 2014


  Branch: refs/heads/1.11
  Home:   https://github.com/OpenSIPS/opensips
  Commit: fad349183d6271b8c6e7a40869b42383fe784fd9
      https://github.com/OpenSIPS/opensips/commit/fad349183d6271b8c6e7a40869b42383fe784fd9
  Author: Walter Doekes <walter+github at wjd.nu>
  Date:   2014-03-26 (Wed, 26 Mar 2014)

  Changed paths:
    M modules/presence_dialoginfo/notify_body.c

  Log Message:
  -----------
  presence_dialoginfo: Fix bounds checking by using a helper function.

Reported by: dsandras
> About the bound checking error, the code was cut&pasted from another
> place in the same file where the same error is still present:
> ...

Also I replaced a heap str with a stack one in build_dialoginfo. This
one wasn't freed either unless an error condition was hit.

(cherry picked from commit 6d058ec495c2faa015b24f412e2fe1b55526657e)




More information about the Devel mailing list