Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | leak-detective: Whitelist libssl SSL_COMP_get_compression_methods() | Martin Willi | 2014-09-24 | 1 | -0/+2 |
| | | | | | This function is called by libcurl initialization with SSL, and uses a static allocation of compression algorithms not freed. | ||||
* | windows: Add a common Windows header for platform specific wrappers | Martin Willi | 2014-06-03 | 1 | -5/+3 |
| | | | | | Include some more basic system headers in utils.h, so we can use that common header on the different platforms. | ||||
* | leak-detective: LEAK_DETECTIVE_DISABLE completely disables LD | Tobias Brunner | 2014-04-03 | 1 | -6/+9 |
| | | | | | If lib->leak_detective is non-null some code parts (e.g. the plugin loader) assume LD is actually used. | ||||
* | utils: Move thread-safe strerror replacement to a separate file | Tobias Brunner | 2014-02-24 | 1 | -1/+1 |
| | | | | | For some utils _GNU_SOURCE might be needed but that conflicts with the signature of strerror_r(3). | ||||
* | lib: All settings use configured namespace | Tobias Brunner | 2014-02-12 | 1 | -3/+3 |
| | |||||
* | leak_detective: Assign return value of realloc to buf | Thomas Egerer | 2014-02-10 | 1 | -1/+1 |
| | | | | | | | If realloc return a pointer value different from the value to be reallocated, a double free can occur in this context. Signed-off-by: Thomas Egerer <thomas.egerer@secunet.com> | ||||
* | leak-detective: Call {gm,local}time_r() to allocate static buffer | Martin Willi | 2013-11-06 | 1 | -0/+5 |
| | | | | | On OS X Mavericks, these functions use a static allocation and are hard to whitelist using other means. | ||||
* | leak-detective: Register OS X specific hooks just once | Martin Willi | 2013-11-06 | 1 | -0/+7 |
| | | | | | If we initialize libstrongswan more than once in the same process, we may not register the hooks twice. | ||||
* | leak-detective: Reset leak list during cleanup | Martin Willi | 2013-11-06 | 1 | -0/+1 |
| | | | | This resets leak detective state should it get created/destroyed more than once. | ||||
* | leak-detective: Use callback functions to report leaks and usage information | Martin Willi | 2013-11-06 | 1 | -36/+53 |
| | | | | This is more flexible than printing reports to a FILE. | ||||
* | Added tzset memory leak to whitelist | Andreas Steffen | 2013-08-28 | 1 | -0/+1 |
| | |||||
* | leak-detective: remove hdr entry when reallocating zero bytes | Martin Willi | 2013-07-12 | 1 | -0/+6 |
| | |||||
* | leak-detective: print total of allocated/leaked bytes in usage/report | Martin Willi | 2013-07-12 | 1 | -5/+13 |
| | |||||
* | leak-detective: add a usage threshold option based on the number of allocations | Martin Willi | 2013-07-10 | 1 | -6/+11 |
| | |||||
* | leak-detective: set_state() only affects the calling thread | Martin Willi | 2013-07-10 | 1 | -13/+1 |
| | | | | | The only user (bfd backtraces) is fine with that, and we really should not mess the enable flag while doing allocations with other threads. | ||||
* | leak-detective: take a copy of backtrace while printing traces | Martin Willi | 2013-07-10 | 1 | -2/+3 |
| | | | | | As we don't want to hold the lock, we must make sure backtraces keep valid while printing them. | ||||
* | leak-detective: remove hdr from the allocation list during realloc() | Martin Willi | 2013-07-10 | 1 | -39/+60 |
| | | | | | | | If realloc moves an allocation, the original allocation gets freed. We therefore must remove the hdr from the list, as it is invalid. We can add it afterwards once it has been updated, allowing us to unlock the list during reallocation. | ||||
* | leak-detective: (re-)whitelist some OpenSSL functions | Martin Willi | 2013-06-21 | 1 | -0/+5 |
| | | | | | | | Some static allocations in plugins won't get freed, because in the test case process the plugins are not destroyed. If a plugin would clean up allocations done while just using the plugin, these show up as leak in the child process, letting tests fail. | ||||
* | leak-detective: Resolve hooked functions during initialization | Tobias Brunner | 2013-06-11 | 1 | -1/+4 |
| | | | | | | | | | If uses of dlopen(), e.g. when loading plugins, produce errors an error string could get allocated dynamically. At this point realloc() might not yet be resolved and when dlsym() is later called by leak detective to do so the error string might get freed while leak detective is disabled and real_free() will be called with a pointer into one of leak detective's memory blocks instead of a pointer to the block itself, causing a SIGSEGV. | ||||
* | Add getter for the number of leaks to leak_detective_t | Tobias Brunner | 2013-06-11 | 1 | -2/+16 |
| | |||||
* | openssl: Properly cleanup OpenSSL library | Tobias Brunner | 2013-05-08 | 1 | -7/+0 |
| | |||||
* | leak-detective: add support for OS X by hooking default malloc zone | Martin Willi | 2013-05-06 | 1 | -5/+160 |
| | |||||
* | leak-detective: remove unused malloc call counters | Martin Willi | 2013-05-06 | 1 | -7/+0 |
| | |||||
* | leak-detective: align allocations on both 32 and 64-bit systems to 32 bytes | Martin Willi | 2013-05-06 | 1 | -0/+5 |
| | |||||
* | leak-detective: call tzset() explicitly before enabling leak detective | Martin Willi | 2013-05-06 | 1 | -6/+11 |
| | | | | | tzset() is hard to whitelist on some systems, as there is no symbol involved. Call tzset() explicitly before initialization to avoid false positives. | ||||
* | leak-detective: override malloc functions instead of using deprecated hooks | Martin Willi | 2013-05-06 | 1 | -128/+206 |
| | | | | | | | malloc hooks have become deprecated, and their use has always been problematic, especially in multi-threaded applications. Replace the functionality by overriding all malloc functions and query the system allocator functions using dlsym() with RTLD_NEXT. | ||||
* | added getpwuid_r and initgroups to whitelist | Andreas Steffen | 2013-03-03 | 1 | -0/+2 |
| | |||||
* | Moved debug.[ch] to utils folder | Tobias Brunner | 2012-10-24 | 1 | -1/+1 |
| | |||||
* | Moved data structures to new collections subfolder | Tobias Brunner | 2012-10-24 | 1 | -1/+1 |
| | |||||
* | Add getspnam_r() to leak detective whitelist | Martin Willi | 2012-08-10 | 1 | -0/+1 |
| | |||||
* | Increase leak detective backtrace depth by a frame | Martin Willi | 2012-07-13 | 1 | -4/+4 |
| | |||||
* | Don't access tail magic when reallocating invalid memory, as it would crash | Martin Willi | 2012-07-13 | 1 | -5/+7 |
| | |||||
* | Add an external method to disable leak detective temporarly | Martin Willi | 2012-07-13 | 1 | -0/+30 |
| | |||||
* | Add safe_strerror() to leak detective whitelist | Martin Willi | 2012-07-11 | 1 | -0/+1 |
| | | | | | | While the thread specific strerror buffer gets cleaned up for worker threads during their termination, the main thread itself, and so its strerror buffer, is still alive during leak reports. | ||||
* | Added ctime function to white list | Sansar Choinyambuu | 2011-11-28 | 1 | -0/+1 |
| | |||||
* | whitelist glibc instead of TrouSerS functions | Andreas Steffen | 2011-09-10 | 1 | -3/+4 |
| | |||||
* | added leaky TrouSerS functions to whitelist | Andreas Steffen | 2011-09-08 | 1 | -0/+3 |
| | |||||
* | Use better packing of leak-detective memory_header to align pointers | Martin Willi | 2011-05-25 | 1 | -5/+5 |
| | |||||
* | Summarize leaks with identical backtraces, as we do it with memusage | Martin Willi | 2011-05-25 | 1 | -88/+98 |
| | |||||
* | Added a leak detective method to report current memory usage with backtraces | Martin Willi | 2011-05-16 | 1 | -0/+94 |
| | |||||
* | Make leak detective public | Martin Willi | 2011-05-16 | 1 | -1/+0 |
| | |||||
* | Migrated leak_detective to INIT/METHOD macros | Martin Willi | 2011-05-16 | 1 | -12/+12 |
| | |||||
* | Whitelisted another tzset variant and dlsym | Martin Willi | 2011-02-18 | 1 | -0/+2 |
| | |||||
* | Whitelist gnutls init function | Martin Willi | 2011-01-17 | 1 | -0/+2 |
| | |||||
* | backtrace->contains_function takes multiple names, speeding up whitelist ↵ | Martin Willi | 2011-01-17 | 1 | -17/+2 |
| | | | | check drastically | ||||
* | Add some common glib non-leaks to whitelist | Martin Willi | 2011-01-17 | 1 | -0/+10 |
| | |||||
* | implemented IMC/IMV handler | Andreas Steffen | 2010-11-09 | 1 | -0/+2 |
| | |||||
* | Handle PIN: as a magic keyword for prompt, use getpass() to silently read ↵ | Martin Willi | 2010-08-04 | 1 | -0/+1 |
| | | | | credentials | ||||
* | Added NSPR PR_CallOnce to leak detective whitelist | Martin Willi | 2010-08-04 | 1 | -0/+2 |
| | |||||
* | Added buffer checking variants of syslog functions to leak detective | Martin Willi | 2010-08-04 | 1 | -0/+2 |
| |