[OpenSIPS/opensips] 7943ae: registrar: fix contacts re-alloc issue

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

[OpenSIPS/opensips] 7943ae: registrar: fix contacts re-alloc issue

Razvan Crainea-3
  Branch: refs/heads/2.4
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 7943ae41da33af4b4311093bc3fbc56ec41cd65b
      https://github.com/OpenSIPS/opensips/commit/7943ae41da33af4b4311093bc3fbc56ec41cd65b
  Author: Razvan Crainea <[hidden email]>
  Date:   2018-11-08 (Thu, 08 Nov 2018)

  Changed paths:
    M modules/registrar/lookup.c

  Log Message:
  -----------
  registrar: fix contacts re-alloc issue

When more than 20 contacts were serialized in a buffer, the realloc was
not allocating enough space for the buffer to hold all entries. This
lead to a memory corruption and further to a crash.

(cherry picked from commit 54ca97b50ad0f52d43a5b6819ce7f42ea019ecc6)



      **NOTE:** This service has 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.

_______________________________________________
Devel mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel