Skip to content

Commit

Permalink
Disabled some QuickJS hackery which was causing havoc when the saniti…
Browse files Browse the repository at this point in the history
…ser is enabled
  • Loading branch information
julianstorer committed Oct 26, 2024
1 parent f134e46 commit 9e7ceb0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions javascript/choc_javascript_QuickJS.h
Original file line number Diff line number Diff line change
Expand Up @@ -9457,6 +9457,14 @@ int JS_SetModuleExportList(JSContext *ctx, JSModuleDef *m,
#define CONFIG_STACK_CHECK
#endif

// Avoid enabling the stack check if the sanitiser is active, as it causes all
// kinds of (hopefully) spurious exceptions
#if defined (__has_feature)
#if __has_feature (address_sanitizer) && __has_feature (undefined_behavior_sanitizer)
#undef CONFIG_STACK_CHECK
#endif
#endif


/* dump object free */
//#define DUMP_FREE
Expand Down

0 comments on commit 9e7ceb0

Please sign in to comment.