[libc-commits] [libc] [libc] Expand usage of libc null checks. (PR #116262)
Aly ElAshram via libc-commits
libc-commits at lists.llvm.org
Fri Feb 7 16:20:16 PST 2025
================
@@ -19,6 +20,8 @@ namespace LIBC_NAMESPACE_DECL {
template <typename Comp>
LIBC_INLINE constexpr char *inline_strstr(const char *haystack,
const char *needle, Comp &&comp) {
+ LIBC_CRASH_ON_NULLPTR(haystack);
+ LIBC_CRASH_ON_NULLPTR(needle);
----------------
AlyElashram wrote:
Yeah I'm gonna swap this back , I don't really like changing the behavior in a central function (Utils).
Opinions ?
https://github.com/llvm/llvm-project/pull/116262
More information about the libc-commits
mailing list