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

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


  Branch: refs/heads/1.10
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3972d266958e6e49110a881e1c9733fa066873ff
      https://github.com/OpenSIPS/opensips/commit/3972d266958e6e49110a881e1c9733fa066873ff
  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