5 * This header lists functions that have been banned from our code base,
6 * because they're too easy to misuse (and even if used correctly,
7 * complicate audits). Including this header turns them into compile-time
11 #define BANNED(func) sorry_##func##_is_a_banned_function
14 #define strcpy(x,y) BANNED(strcpy)
16 #define strcat(x,y) BANNED(strcat)
20 #ifdef HAVE_VARIADIC_MACROS
21 #define sprintf(...) BANNED(sprintf)
22 #define vsprintf(...) BANNED(vsprintf)
24 #define sprintf(buf,fmt,arg) BANNED(sprintf)
25 #define vsprintf(buf,fmt,arg) BANNED(sprintf)