emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

scratch/igc af9ce73c0c3: Fix building IGC with ASan


From: Stefan Kangas
Subject: scratch/igc af9ce73c0c3: Fix building IGC with ASan
Date: Sun, 12 Jan 2025 05:22:16 -0500 (EST)

branch: scratch/igc
commit af9ce73c0c371d5092dbf6854b9e39c848a0158e
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>

    Fix building IGC with ASan
    
    Build failures were observed on macOS 15.2.  With this patch, the ASan
    build works if you set `ulimit -s unlimited` first.
    
    * src/igc.c (scan_ambig): Use ATTRIBUTE_NO_SANITIZE_ADDRESS.
    (Bug#75482)
---
 src/igc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/igc.c b/src/igc.c
index 5c5b19a0a04..0bd7d824fd9 100644
--- a/src/igc.c
+++ b/src/igc.c
@@ -1544,7 +1544,7 @@ scan_specpdl (mps_ss_t ss, void *start, void *end, void 
*closure)
    references may be either tagged words or pointers.  This is used for
    blocks allocated with malloc and thread stacks.  */
 
-static mps_res_t
+static mps_res_t ATTRIBUTE_NO_SANITIZE_ADDRESS
 scan_ambig (mps_ss_t ss, void *start, void *end, void *closure)
 {
   MPS_SCAN_BEGIN (ss)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]