Browse Source

require the __asan_unpoison_memory_region runtime symbol so empty projects with asan enabled build

Laytan Laats 4 tháng trước cách đây
mục cha
commit
4d08b76372
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      base/runtime/internal.odin

+ 1 - 0
base/runtime/internal.odin

@@ -1109,6 +1109,7 @@ __read_bits :: proc "contextless" (dst, src: [^]byte, offset: uintptr, size: uin
 
 when .Address in ODIN_SANITIZER_FLAGS {
 	foreign {
+		@(require)
 		__asan_unpoison_memory_region :: proc "system" (address: rawptr, size: uint) ---
 	}
 }