]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
unit-tests: Disable AddressSanitizer for threading cleanup function
authorMartin Willi <martin@revosec.ch>
Wed, 8 Apr 2015 08:18:31 +0000 (10:18 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 15 Sep 2022 10:16:12 +0000 (12:16 +0200)
As the cleanup function reads from the correct address on the parent frame,
it is currently unclear why AddressSanitizer complains about that pointer
dereference.

src/libstrongswan/tests/suites/test_threading.c

index 90ebca62e901673d5bb90bc27735db5fed758de2..cd0101a517ef6be6371b58f09f2692c0e31ea05e 100644 (file)
@@ -1214,6 +1214,8 @@ START_TEST(test_cancel_point)
 }
 END_TEST
 
+/* not sure why AddressSanitizer complains here, pointer looks fine */
+ADDRESS_SANITIZER_EXCLUDE
 static void close_fd_ptr(void *fd)
 {
        close(*(int*)fd);
@@ -1253,6 +1255,8 @@ static void cancellation_read()
        }
 }
 
+/* the AddressSaniziter complains about the fd_set here for some reason */
+ADDRESS_SANITIZER_EXCLUDE
 static void cancellation_select()
 {
        int sv[2];