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

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

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

Liviu Chircu
  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3d2abb23ce0063150e2a945d876bec03b079b6cf
      https://github.com/OpenSIPS/opensips/commit/3d2abb23ce0063150e2a945d876bec03b079b6cf
  Author: Liviu Chircu <[hidden email]>
  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 <[hidden email]>
  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 <[hidden email]>
  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
_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel
Loading...