[libc-commits] [libc] [libc] Expand usage of libc null checks. (PR #116262)

Aly ElAshram via libc-commits libc-commits at lists.llvm.org
Mon Feb 10 13:52:42 PST 2025


================
@@ -10,13 +10,18 @@
 
 #include "src/__support/common.h"
 #include "src/__support/macros/config.h"
+#include "src/__support/macros/null_check.h"
 #include <stddef.h> // For size_t.
 
 namespace LIBC_NAMESPACE_DECL {
 
 LLVM_LIBC_FUNCTION(void *, memccpy,
                    (void *__restrict dest, const void *__restrict src, int c,
                     size_t count)) {
+  if (c) {
----------------
AlyElashram wrote:

I'm still running through the PR and changes , I don't want to waste your time reviewing multiple times. I'll convert it to a draft until someone replies on the tests change. Feel free of course to go through the PR , again I just dont want to waste your time :"D 

https://github.com/llvm/llvm-project/pull/116262


More information about the libc-commits mailing list