[SCM] NSS Wrapper Repository - branch master updated
Michael Adam
obnox at samba.org
Fri Nov 20 10:07:10 UTC 2015
The branch, master has been updated
via 75a22b4 tests: add __sha512_crypt to suppression file.
via bfd11d7 tests: Set the valgrind suppression file
via 50101ce tests: Add valgrind suppression for glibc error
from 23a7a85 nwrap: Don't leak memory from gethostbyname*() functions
https://git.samba.org/?p=nss_wrapper.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 75a22b46dc995baa4f9f362e4113ef86f4d605d6
Author: Michael Adam <obnox at samba.org>
Date: Fri Nov 20 10:51:11 2015 +0100
tests: add __sha512_crypt to suppression file.
While the manpage crypt(3) states that the function
returns a pointer to static memory, this does not
seem to be true for the __sha512 variant.
Signed-off-by: Michael Adam <obnox at samba.org>
Reviewed-by: Andreas Schneider <asn at samba.org>
commit bfd11d7a1511a678539597905c2fce2ab033aa4c
Author: Andreas Schneider <asn at samba.org>
Date: Fri Nov 20 09:59:58 2015 +0100
tests: Set the valgrind suppression file
You can run 'make ExperimentalMemcheck' with valgrind suppression now.
Signed-off-by: Andreas Schneider <asn at samba.org>
Reviewed-by: Michael Adam <obnox at samba.org>
commit 50101ce09b125892456085ea69cd4cc55ea2691c
Author: Andreas Schneider <asn at samba.org>
Date: Fri Nov 20 09:22:36 2015 +0100
tests: Add valgrind suppression for glibc error
Signed-off-by: Andreas Schneider <asn at samba.org>
Reviewed-by: Michael Adam <obnox at samba.org>
-----------------------------------------------------------------------
Summary of changes:
CMakeLists.txt | 9 +++++++++
tests/valgrind.supp | 24 ++++++++++++++++++++++++
2 files changed, 33 insertions(+)
Changeset truncated at 500 lines:
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f73a46c..c23802e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -58,6 +58,15 @@ install(
if (UNIT_TESTING)
find_package(CMocka REQUIRED)
+
+ file(TO_CMAKE_PATH "${CMAKE_SOURCE_DIR}/tests/valgrind.supp" VALGRIND_SUPPRESSION_FILE)
+ # add the valgrind suppressions
+ set(MEMORYCHECK_SUPPRESSIONS_FILE
+ ${VALGRIND_SUPPRESSION_FILE}
+ CACHE
+ FILEPATH
+ "Path to the memory checking command, used for memory error detection.")
+
include(AddCMockaTest)
add_subdirectory(tests)
endif (UNIT_TESTING)
diff --git a/tests/valgrind.supp b/tests/valgrind.supp
index 95c980b..aac3f28 100644
--- a/tests/valgrind.supp
+++ b/tests/valgrind.supp
@@ -13,3 +13,27 @@
fun:_dlerror_run
fun:dlopen@@GLIBC_2.2.5
}
+
+{
+ glibc_dlopen_alloc
+ Memcheck:Leak
+ fun:calloc
+ fun:_dlerror_run
+ fun:dlopen@@GLIBC_2.2.5
+}
+
+{
+ glibc_dlclose_alloc
+ Memcheck:Leak
+ fun:calloc
+ fun:_dlerror_run
+ fun:dlclose
+}
+
+{
+ glibc___sha512_crypt_alloc
+ Memcheck:Leak
+ fun:malloc
+ fun:realloc
+ fun:__sha512_crypt
+}
--
NSS Wrapper Repository
More information about the samba-cvs
mailing list