[OpenSIPS-Devel] [OpenSIPS/opensips] 38bf26: Only pkg_free(act->elem[2].u.data) if it's value h...

Bogdan Andrei IANCU bogdan at opensips.org
Mon Feb 13 03:27:19 EST 2017


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 38bf2666c2cab2439e6cc6e11ca15cfd7f3b0352
      https://github.com/OpenSIPS/opensips/commit/38bf2666c2cab2439e6cc6e11ca15cfd7f3b0352
  Author: Maksym Sobolyev <sobomax at sippysoft.com>
  Date:   2017-02-11 (Sat, 11 Feb 2017)

  Changed paths:
    M modules/python/python_msgobj.c

  Log Message:
  -----------
  Only pkg_free(act->elem[2].u.data) if it's value has been altered
by the "fixup" function. This fixes crash in the following piece
of python code:

 msg.call_function('www_authorize', get_realm(), \
    'accounts')

[...]
[...]
(gdb) print act->elem[2]
$1 = {type = 11, u = {number = 34369153652, string = 0x8008faa74 "accounts", data = 0x8008faa74, s = {s = 0x8008faa74 "accounts", len = 0}, item = 0x8008faa74}}
(gdb) print fexport->fixup
$4 = (fixup_function) 0x8037b8870 <auth_fixup>
(gdb) print arg2
$9 = 0x8008faa74 "accounts"


  Commit: f40707ecc4541358de2c159c700ac4b83e0ddf71
      https://github.com/OpenSIPS/opensips/commit/f40707ecc4541358de2c159c700ac4b83e0ddf71
  Author: Bogdan Andrei IANCU <bogdan at opensips.org>
  Date:   2017-02-13 (Mon, 13 Feb 2017)

  Changed paths:
    M modules/python/python_msgobj.c

  Log Message:
  -----------
  Merge pull request #1050 from sippy/master_clean

Fix a crash in the python module.


Compare: https://github.com/OpenSIPS/opensips/compare/16b8b2935466...f40707ecc454


More information about the Devel mailing list