[OpenSIPS-Devel] [OpenSIPS/opensips] 3f0b8f: Inconssistenci error when pkg_realloc() fails.

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Feb 2 10:50:19 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3f0b8fe15f989c19e76e914b30ae71f95d6a8a6c
      https://github.com/OpenSIPS/opensips/commit/3f0b8fe15f989c19e76e914b30ae71f95d6a8a6c
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2015-02-02 (Mon, 02 Feb 2015)

  Changed paths:
    M modules/load_balancer/lb_bl.c
    M modules/load_balancer/lb_data.c

  Log Message:
  -----------
  Inconssistenci error when pkg_realloc() fails.

If malloc fails and new static buff=NULL, we have to modify buff_size accordingly, or we will face out-of bound exception.
Credits go to Sergey KHripchenko, related to pull request #345




More information about the Devel mailing list