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 9e383c2 commit 0f1b72a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/cpp_doom/test_z_native.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ TEST_CASE("Z_Malloc(PU_LEVEL) and Z_Free and Z_Malloc(PU_LEVEL)", "[z_native]")
REQUIRE(ptr2 != nullptr);
}

#if defined(__has_feature)
# if __has_feature(address_sanitizer)
# ifndef __SANITIZE_ADDRESS__
# define __SANITIZE_ADDRESS__
# endif
# endif
#endif

#ifndef __SANITIZE_ADDRESS__
struct memblock_t {
int id; // = ZONEID
Expand Down

0 comments on commit 0f1b72a

Please sign in to comment.