[OpenSIPS-Devel] [OpenSIPS/opensips] 3e1a1a: Fix potential memory corruption on TCP write error...

Liviu Chircu liviu at opensips.org
Tue Oct 27 18:04:53 CET 2015


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 3e1a1a719215814f983001eef199ad01a263244f
      https://github.com/OpenSIPS/opensips/commit/3e1a1a719215814f983001eef199ad01a263244f
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2015-10-27 (Tue, 27 Oct 2015)

  Changed paths:
    M net/net_tcp.c

  Log Message:
  -----------
  Fix potential memory corruption on TCP write errors

This patch fixes a well-hidden TCP connection referencing bug which
would only reveal itself upon running into failed TCP send() operations
due to various reasons (e.g. full send buffer) in high-traffic environments.

Credits to Hieu Ta and Don Steul from Jibe Mobile for detailed reporting
and providing an adequate replication environment


  Commit: cb5eebe00ea735f290a213ea74f55b4afcc06236
      https://github.com/OpenSIPS/opensips/commit/cb5eebe00ea735f290a213ea74f55b4afcc06236
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2015-10-27 (Tue, 27 Oct 2015)

  Changed paths:
    M net/net_tcp.c

  Log Message:
  -----------
  TCP aliases: Fix more race conditions (issue #589)

_tcpconn_find() returns a pointer which should never be used outside of
TCP lock. This patch completes commit 22f4c1a2e05 by fixing two
additional issues of the same type in tcpconn_add_alias()


Compare: https://github.com/OpenSIPS/opensips/compare/a76ab7a98ebb...cb5eebe00ea7


More information about the Devel mailing list