@@ -963,9 +963,9 @@ INTERCEPTOR(float, frexpf, float x, int *exp) {
963963 return res;
964964}
965965
966- #define INIT_FREXPF COMMON_INTERCEPT_FUNCTION (frexpf);
966+ # define INIT_FREXPF COMMON_INTERCEPT_FUNCTION (frexpf);
967967#else
968- #define INIT_FREXPF
968+ # define INIT_FREXPF
969969#endif
970970
971971#if SANITIZER_INTERCEPT_FREXPL
@@ -978,9 +978,9 @@ INTERCEPTOR(long double, frexpl, long double x, int *exp) {
978978 return res;
979979}
980980
981- #define INIT_FREXPL COMMON_INTERCEPT_FUNCTION_LDBL (frexpl)
981+ # define INIT_FREXPL COMMON_INTERCEPT_FUNCTION_LDBL (frexpl)
982982#else
983- #define INIT_FREXPL
983+ # define INIT_FREXPL
984984#endif
985985
986986#if SI_POSIX
@@ -1351,7 +1351,7 @@ INTERCEPTOR(unsigned long, time, unsigned long *t) {
13511351static void unpoison_tm (void *ctx, __sanitizer_tm *tm) {
13521352 COMMON_INTERCEPTOR_WRITE_RANGE (ctx, tm, sizeof (*tm));
13531353// AIX tm struct does not have tm_zone field.
1354- #if !SANITIZER_SOLARIS && !SANITIZER_AIX
1354+ # if !SANITIZER_SOLARIS && !SANITIZER_AIX
13551355 if (tm->tm_zone ) {
13561356 // Can not use COMMON_INTERCEPTOR_WRITE_RANGE here, because tm->tm_zone
13571357 // can point to shared memory and tsan would report a data race.
@@ -1736,12 +1736,12 @@ INTERCEPTOR(int, __vsprintf_chk, char *str, int flag, SIZE_T size_to,
17361736VSPRINTF_INTERCEPTOR_IMPL (vsprintf, str, format, ap)
17371737#endif
17381738
1739- #if SANITIZER_INTERCEPT_VASPRINTF
1739+ # if SANITIZER_INTERCEPT_VASPRINTF
17401740INTERCEPTOR (int , vasprintf, char **strp, const char *format, va_list ap)
17411741VASPRINTF_INTERCEPTOR_IMPL (vasprintf, strp, format, ap)
1742- #endif
1742+ # endif
17431743
1744- #if SANITIZER_INTERCEPT_ISOC99_PRINTF
1744+ # if SANITIZER_INTERCEPT_ISOC99_PRINTF
17451745INTERCEPTOR (int , __isoc99_vprintf, const char *format, va_list ap)
17461746VPRINTF_INTERCEPTOR_IMPL (__isoc99_vprintf, format, ap)
17471747
@@ -1790,12 +1790,12 @@ INTERCEPTOR(int, __snprintf_chk, char *str, SIZE_T size, int flag,
17901790FORMAT_INTERCEPTOR_IMPL (__snprintf_chk, vsnprintf, str, size, format)
17911791#endif
17921792
1793- #if SANITIZER_INTERCEPT_ASPRINTF
1793+ # if SANITIZER_INTERCEPT_ASPRINTF
17941794INTERCEPTOR (int , asprintf, char **strp, const char *format, ...)
17951795FORMAT_INTERCEPTOR_IMPL (asprintf, vasprintf, strp, format)
1796- #endif
1796+ # endif
17971797
1798- #if SANITIZER_INTERCEPT_ISOC99_PRINTF
1798+ # if SANITIZER_INTERCEPT_ISOC99_PRINTF
17991799INTERCEPTOR (int , __isoc99_printf, const char *format, ...)
18001800FORMAT_INTERCEPTOR_IMPL (__isoc99_printf, __isoc99_vprintf, format)
18011801
@@ -1816,29 +1816,29 @@ FORMAT_INTERCEPTOR_IMPL(__isoc99_snprintf, __isoc99_vsnprintf, str, size,
18161816#endif // SANITIZER_INTERCEPT_PRINTF
18171817
18181818#if SANITIZER_INTERCEPT_PRINTF
1819- #if SANITIZER_AIX
1820- #define INIT_PRINTF \
1821- COMMON_INTERCEPT_FUNCTION_LDBL (printf); \
1822- COMMON_INTERCEPT_FUNCTION_LDBL (sprintf); \
1823- COMMON_INTERCEPT_FUNCTION_LDBL (snprintf); \
1824- COMMON_INTERCEPT_FUNCTION_LDBL (fprintf); \
1825- COMMON_INTERCEPT_FUNCTION_LDBL (vprintf); \
1826- COMMON_INTERCEPT_FUNCTION_LDBL (vsprintf); \
1827- COMMON_INTERCEPT_FUNCTION_LDBL (vsnprintf); \
1828- COMMON_INTERCEPT_FUNCTION_LDBL (vfprintf);
1829- #else
1830- #define INIT_PRINTF \
1831- COMMON_INTERCEPT_FUNCTION_LDBL (printf); \
1832- COMMON_INTERCEPT_FUNCTION_LDBL (sprintf); \
1833- COMMON_INTERCEPT_FUNCTION_LDBL (snprintf); \
1834- COMMON_INTERCEPT_FUNCTION_LDBL (fprintf); \
1835- COMMON_INTERCEPT_FUNCTION_LDBL (vprintf); \
1836- COMMON_INTERCEPT_FUNCTION_LDBL (vsprintf); \
1837- COMMON_INTERCEPT_FUNCTION_LDBL (vsnprintf); \
1838- COMMON_INTERCEPT_FUNCTION_LDBL (asprintf); \
1839- COMMON_INTERCEPT_FUNCTION_LDBL (vasprintf); \
1840- COMMON_INTERCEPT_FUNCTION_LDBL (vfprintf);
1841- #endif
1819+ # if SANITIZER_AIX
1820+ # define INIT_PRINTF \
1821+ COMMON_INTERCEPT_FUNCTION_LDBL (printf); \
1822+ COMMON_INTERCEPT_FUNCTION_LDBL (sprintf); \
1823+ COMMON_INTERCEPT_FUNCTION_LDBL (snprintf); \
1824+ COMMON_INTERCEPT_FUNCTION_LDBL (fprintf); \
1825+ COMMON_INTERCEPT_FUNCTION_LDBL (vprintf); \
1826+ COMMON_INTERCEPT_FUNCTION_LDBL (vsprintf); \
1827+ COMMON_INTERCEPT_FUNCTION_LDBL (vsnprintf); \
1828+ COMMON_INTERCEPT_FUNCTION_LDBL (vfprintf);
1829+ # else
1830+ # define INIT_PRINTF \
1831+ COMMON_INTERCEPT_FUNCTION_LDBL (printf); \
1832+ COMMON_INTERCEPT_FUNCTION_LDBL (sprintf); \
1833+ COMMON_INTERCEPT_FUNCTION_LDBL (snprintf); \
1834+ COMMON_INTERCEPT_FUNCTION_LDBL (fprintf); \
1835+ COMMON_INTERCEPT_FUNCTION_LDBL (vprintf); \
1836+ COMMON_INTERCEPT_FUNCTION_LDBL (vsprintf); \
1837+ COMMON_INTERCEPT_FUNCTION_LDBL (vsnprintf); \
1838+ COMMON_INTERCEPT_FUNCTION_LDBL (asprintf); \
1839+ COMMON_INTERCEPT_FUNCTION_LDBL (vasprintf); \
1840+ COMMON_INTERCEPT_FUNCTION_LDBL (vfprintf);
1841+ # endif
18421842#else
18431843#define INIT_PRINTF
18441844#endif
@@ -3922,11 +3922,11 @@ INTERCEPTOR(SIZE_T, wcrtomb, char *dest, wchar_t src, void *ps) {
39223922 if (res != ((SIZE_T)-1 )) {
39233923 CHECK_LE (res, sizeof (local_dest));
39243924 COMMON_INTERCEPTOR_WRITE_RANGE (ctx, dest, res);
3925- #if !SANITIZER_AIX
3926- REAL (memcpy)(dest, local_dest, res);
3927- #else
3928- internal_memcpy (dest, local_dest, res);
3929- #endif
3925+ # if !SANITIZER_AIX
3926+ REAL (memcpy)(dest, local_dest, res);
3927+ # else
3928+ internal_memcpy (dest, local_dest, res);
3929+ # endif
39303930 }
39313931 return res;
39323932}
@@ -3948,11 +3948,11 @@ INTERCEPTOR(int, wctomb, char *dest, wchar_t src) {
39483948 if (res != -1 ) {
39493949 CHECK_LE (res, sizeof (local_dest));
39503950 COMMON_INTERCEPTOR_WRITE_RANGE (ctx, dest, res);
3951- #if !SANITIZER_AIX
3952- REAL (memcpy)(dest, local_dest, res);
3953- #else
3954- internal_memcpy (dest, local_dest, res);
3955- #endif
3951+ # if !SANITIZER_AIX
3952+ REAL (memcpy)(dest, local_dest, res);
3953+ # else
3954+ internal_memcpy (dest, local_dest, res);
3955+ # endif
39563956 }
39573957 return res;
39583958}
0 commit comments