[OpenSIPS-Devel] [OpenSIPS/opensips] ab8488: Fix dangerous \0 adding outside the str buffer.
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Feb 27 12:49:54 EST 2018
Branch: refs/heads/2.3
Home: https://github.com/OpenSIPS/opensips
Commit: ab8488b7090d32c47b49d916efe271e599ea69b4
https://github.com/OpenSIPS/opensips/commit/ab8488b7090d32c47b49d916efe271e599ea69b4
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)
More information about the Devel
mailing list