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