[OpenSIPS-Devel] [OpenSIPS/opensips] 3d2abb: Fix several binary interface bugs

Liviu Chircu liviu at opensips.org
Thu Apr 13 09:02:53 EDT 2017


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3d2abb23ce0063150e2a945d876bec03b079b6cf
      https://github.com/OpenSIPS/opensips/commit/3d2abb23ce0063150e2a945d876bec03b079b6cf
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-04-13 (Thu, 13 Apr 2017)

  Changed paths:
    M bin_interface.c

  Log Message:
  -----------
  Fix several binary interface bugs

    * badly handled empty str pushes
    * buggy str pop operations
    * missing safety check
    * addition instead of subtraction bug :|
    * bad limit check
    * fix guaranteed crash if out of pkg mem

Fixes #1084


  Commit: 8ebca4bfbebb49f5598bb9079b24368c85afb84e
      https://github.com/OpenSIPS/opensips/commit/8ebca4bfbebb49f5598bb9079b24368c85afb84e
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-04-13 (Thu, 13 Apr 2017)

  Changed paths:
    M modules/dialog/dlg_replication.c

  Log Message:
  -----------
  dialog replication: Avoid potential crash when debugging ("log_level = 4")


  Commit: 06bc4ba4d560606ddd8299754e03ef1b3c1f4007
      https://github.com/OpenSIPS/opensips/commit/06bc4ba4d560606ddd8299754e03ef1b3c1f4007
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2017-04-13 (Thu, 13 Apr 2017)

  Changed paths:
    M bin_interface.c
    M bin_interface.h

  Log Message:
  -----------
  binary interface: Improve coding style

    * fix missing "\n" in log messages
    * improve readability of buffer safety checks
    * bin_extend(), rather than bin_realloc()
    * fix some line lengths
    * fix typos


Compare: https://github.com/OpenSIPS/opensips/compare/c6083fca7d7a...06bc4ba4d560


More information about the Devel mailing list