diff options
author | Tobias Brunner <tobias@strongswan.org> | 2016-06-15 11:22:04 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2016-06-15 16:21:47 +0200 |
commit | e0c59faa68127b9016c45b3ff6ca6e93e19d6970 (patch) | |
tree | f817b096e1852b2c4ecaa0f8b5e66e50362920d8 /src/libtnccs/plugins/tnccs_20/tnccs_20_client.c | |
parent | 8f1806605d938eec758fbefa9657dc0f58ed1c7e (diff) | |
download | strongswan-e0c59faa68127b9016c45b3ff6ca6e93e19d6970.tar.bz2 strongswan-e0c59faa68127b9016c45b3ff6ca6e93e19d6970.tar.xz |
leak-detective: Make sure to actually call malloc() from calloc() hook
Newer versions of GCC are too "smart" and replace a call to malloc(X)
followed by a call to memset(0,X) with a call co calloc(), which obviously
results in an infinite loop when it does that in our own calloc()
implementation. Using `volatile` for the variable storing the total size
prevents the optimization and we actually call malloc().
Diffstat (limited to 'src/libtnccs/plugins/tnccs_20/tnccs_20_client.c')
0 files changed, 0 insertions, 0 deletions