[OpenSIPS-Devel] [OpenSIPS/opensips] b9641f: Fix dangerous \0 adding outside the str buffer.

Bogdan-Andrei Iancu bogdan at opensips.org
Tue Feb 27 12:53:23 EST 2018


  Branch: refs/heads/2.2
  Home:   https://github.com/OpenSIPS/opensips
  Commit: b9641f69de67b108b2f5d42925e3a4463e2aac6b
      https://github.com/OpenSIPS/opensips/commit/b9641f69de67b108b2f5d42925e3a4463e2aac6b
  Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
  Date:   2018-02-27 (Tue, 27 Feb 2018)

  Changed paths:
    M route.c

  Log Message:
  -----------
  Fix dangerous \0 adding outside the str buffer.

It is bogus to write a 0 outside the str buffer as (1) the buffer may be in data zone (so read-only) or (2) it may be in shm memory and an overflow may corrupt the memory manager
Reported by Ben Newlin <Ben.Newlin at genesys.com>

(cherry picked from commit 93cc348717f91ad3c31775b99e0d1863ffce84ae)
(cherry picked from commit ab8488b7090d32c47b49d916efe271e599ea69b4)




More information about the Devel mailing list