[OpenSIPS-Devel] [OpenSIPS/opensips] ee3505: fraud_detection: Fix badly handled corner cases

Liviu Chircu liviu at opensips.org
Fri Jun 15 12:55:34 EDT 2018


  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: ee3505736585a1911cae13385164311384c6d7fb
      https://github.com/OpenSIPS/opensips/commit/ee3505736585a1911cae13385164311384c6d7fb
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2018-06-15 (Fri, 15 Jun 2018)

  Changed paths:
    M modules/fraud_detection/fraud_detection.c
    M modules/fraud_detection/frd_hashmap.c
    M modules/fraud_detection/frd_stats.c

  Log Message:
  -----------
  fraud_detection: Fix badly handled corner cases

    * do not segfault on oom (get_stats() returns NULL)
    * do not deadlock when failing to fetch the time
    * do not segfault when failing to create a dialog
    * do not return success on failed allocations + logic
    * do not leak memory on oom failures

(cherry picked from commit 375e9d4f0eba9ad2197ebf5da6c6e974bc7954ea)



      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the Devel mailing list