Skip to content

Commit

Permalink
Classic Vuln
Browse files Browse the repository at this point in the history
  • Loading branch information
patricia-gallardo committed Mar 22, 2022
1 parent 0f1b72a commit 80ebce6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions test/cpp_doom/test_z_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ TEST_CASE("Z_Malloc(PU_LEVEL) and Z_Free and Z_Malloc(PU_LEVEL)", "[z_native]")
REQUIRE(ptr2 != nullptr);
}

// Some compilers don't define __SANITIZE_ADDRESS__
#if defined(__has_feature)
# if __has_feature(address_sanitizer)
# ifndef __SANITIZE_ADDRESS__
# define __SANITIZE_ADDRESS__
# endif
# endif
#endif
# if !defined(__SANITIZE_ADDRESS__)
# define __SANITIZE_ADDRESS__ // NOLINT
# endif // !defined(__SANITIZE_ADDRESS__)
# endif // __has_feature(address_sanitizer)
#endif // __has_feature

#ifndef __SANITIZE_ADDRESS__
struct memblock_t {
Expand Down

0 comments on commit 80ebce6

Please sign in to comment.