eBPF-based security platform
testing: define the memchr() and strstr() models past glibc 2.43 macros
John Fastabend8116d99a1687
diff --git a/testing/proofs/cbmc/proof.h b/testing/proofs/cbmc/proof.hindex 3e9ed38b..c7a8ff5e 100644--- a/testing/proofs/cbmc/proof.h+++ b/testing/proofs/cbmc/proof.h@@ -24,6 +24,13 @@#include <shirudo/types.h>+/*+ * glibc 2.43 makes these const-preserving _Generic macros under C23,+ * which a definition of the function cannot be spelled through.+ */+#undef memchr+#undef strstr+/** CBMC models neither strnlen(), memchr(), strcspn(), strstr() nor* vsnprintf(), and a function without a body returns anything.