[OpenSIPS-Devel] [OpenSIPS/opensips] 5b7651: Fix memory corruption on $stat() vars
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu Jun 16 15:05:27 CEST 2016
Branch: refs/heads/2.1
Home: https://github.com/OpenSIPS/opensips
Commit: 5b765100f07fdbb4d84bd9c9127e46a2498c1790
https://github.com/OpenSIPS/opensips/commit/5b765100f07fdbb4d84bd9c9127e46a2498c1790
Author: Bogdan-Andrei Iancu <bogdan at opensips.org>
Date: 2016-06-16 (Thu, 16 Jun 2016)
Changed paths:
M modules/statistics/statistics.c
Log Message:
-----------
Fix memory corruption on $stat() vars
The $stat() var specs are kept in pkg, while the name (if stat not found) is kept in memeory. This means all the copies (form all procs) of the specs will point to a single shm block. It is not safet to free this block as you have no idea how many copies of the spec (from other processes) still refer the name.
Closes #902
(cherry picked from commit 4baead765179f6bfbc098b3e59791d7bbc4a8d42)
More information about the Devel
mailing list