Skip to content

Commit

Permalink
disable malloc zone checking with asan
Browse files Browse the repository at this point in the history
  • Loading branch information
pfgithub committed Feb 5, 2025
1 parent c8c6845 commit 7d5a822
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/bun.js/bindings/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,12 @@

#if OS(DARWIN)
#if BUN_DEBUG
#if !__has_feature(address_sanitizer)
#include <malloc/malloc.h>
#define IS_MALLOC_DEBUGGING_ENABLED 1
#endif
#endif
#endif

static WTF::StringView StringView_slice(WTF::StringView sv, unsigned start, unsigned end)
{
Expand Down
2 changes: 2 additions & 0 deletions src/bun.js/modules/BunJSCModule.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,12 @@

#if OS(DARWIN)
#if BUN_DEBUG
#if !__has_feature(address_sanitizer)
#include <malloc/malloc.h>
#define IS_MALLOC_DEBUGGING_ENABLED 1
#endif
#endif
#endif

using namespace JSC;
using namespace WTF;
Expand Down

0 comments on commit 7d5a822

Please sign in to comment.