[libc-commits] [libc] [libc][bug] Fix out of bound write in memcpy wi software prefetching (PR #90613)

Clement Courbet via libc-commits libc-commits at lists.llvm.org
Tue Apr 30 07:50:20 PDT 2024


================
@@ -140,6 +146,12 @@ inline_memcpy_x86_avx_ge64_sw_prefetching(Ptr __restrict dst,
     offset += K_THREE_CACHELINES;
   }
   return builtin::Memcpy<64>::loop_and_tail_offset(dst, src, count, offset);
+  // We don't use 'loop_and_tail_offset' because it assumes at least one
----------------
legrosbuffle wrote:

This is dead code. (return above). I'm surprised this was not caught by tests ?

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


More information about the libc-commits mailing list