@cryptotaxi247 / netdata-1 / commits / a494c3c78

allow compiling with FSANITIZE_ADDRESS (#19357)

* undo resuing host sender buffer * fix compilation with FSANITIZE_ADDRESS * aral should not unmark allocations when FSANITIZE_ADDRESS is set * enable reusing sender buffers

Costa Tsaousis committed Jan 9, 2025 at 11:56 UTC a494c3c78496e67ef8cc81b0173e510f2feb2215
2 files changed +5 -1
src/database/engine/cache.c
+1 -1
@@ -2099,8 +2099,8 @@ PGC *pgc_create(const char *name,
2099 NULL, NULL,
2100 false, false, false);
2101 }
2102 - }
2102 #endif
2103 + }
2104
2105
2106 #if defined(PGC_QUEUE_LOCK_AS_WAITING_QUEUE)
src/libnetdata/aral/aral.c
+4
@@ -876,6 +876,10 @@ static ARAL_PAGE **aral_remove_marked_allocation___aral_lock_needed(ARAL *ar, AR
876 }
877
878 void aral_unmark_allocation(ARAL *ar, void *ptr) {
879 +#if defined(FSANITIZE_ADDRESS)
880 + return;
881 +#endif
882 +
883 if(unlikely(!ptr)) return;
884
885 // get the page pointer