@@ -52,31 +52,31 @@ struct AsanInterceptorContext {
5252// that no extra frames are created, and stack trace contains
5353// relevant information only.
5454// We check all shadow bytes.
55- #define ACCESS_MEMORY_RANGE (ctx, offset, size, isWrite ) \
56- do { \
57- uptr __offset = (uptr)(offset); \
58- uptr __size = (uptr)(size); \
59- uptr __bad = 0 ; \
60- if (UNLIKELY (__offset > __offset + __size)) { \
61- GET_STACK_TRACE_FATAL_HERE; \
62- ReportStringFunctionSizeOverflow (__offset, __size, &stack); \
63- } \
64- if (UNLIKELY (!QuickCheckForUnpoisonedRegion (__offset, __size)) && \
65- (__bad = __asan_region_is_poisoned (__offset, __size))) { \
66- AsanInterceptorContext *_ctx = (AsanInterceptorContext *)ctx; \
67- bool suppressed = false ; \
68- if (_ctx) { \
69- suppressed = IsInterceptorSuppressed (_ctx->interceptor_name ); \
70- if (!suppressed && HaveStackTraceBasedSuppressions ()) { \
71- GET_STACK_TRACE_FATAL_HERE; \
72- suppressed = IsStackTraceSuppressed (&stack); \
73- } \
74- } \
75- if (!suppressed) { \
76- GET_CURRENT_PC_BP_SP; \
55+ #define ACCESS_MEMORY_RANGE (ctx, offset, size, isWrite ) \
56+ do { \
57+ uptr __offset = (uptr)(offset); \
58+ uptr __size = (uptr)(size); \
59+ uptr __bad = 0 ; \
60+ if (UNLIKELY (__offset > __offset + __size)) { \
61+ GET_STACK_TRACE_FATAL_HERE; \
62+ ReportStringFunctionSizeOverflow (__offset, __size, &stack); \
63+ } \
64+ if (UNLIKELY (!QuickCheckForUnpoisonedRegion (__offset, __size)) && \
65+ (__bad = __asan_region_is_poisoned (__offset, __size))) { \
66+ AsanInterceptorContext *_ctx = (AsanInterceptorContext *)ctx; \
67+ bool suppressed = false ; \
68+ if (_ctx) { \
69+ suppressed = IsInterceptorSuppressed (_ctx->interceptor_name ); \
70+ if (!suppressed && HaveStackTraceBasedSuppressions ()) { \
71+ GET_STACK_TRACE_FATAL_HERE; \
72+ suppressed = IsStackTraceSuppressed (&stack); \
73+ } \
74+ } \
75+ if (!suppressed) { \
76+ GET_CURRENT_PC_BP_SP; \
7777 ReportGenericError (pc, bp, sp, __offset, isWrite, __size, 0 , false ); \
78- } \
79- } \
78+ } \
79+ } \
8080 } while (0 )
8181
8282#define ASAN_READ_RANGE (ctx, offset, size ) \
0 commit comments