Prevent infinite loop

pull/5036/head
Craig Tiller 9 years ago
parent ac1ac3ab3d
commit 2bf5169f64
  1. 7
      src/core/support/wrap_memcpy.c

@ -42,9 +42,12 @@
#ifdef __linux__
#ifdef __x86_64__
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
#endif
void *__wrap_memcpy(void *destination, const void *source, size_t num) {
return memcpy(destination, source, num);
}
#else /* !__x86_64__ */
void *__wrap_memcpy(void *destination, const void *source, size_t num) {
return memmove(destination, source, num);
}
#endif
#endif

Loading…
Cancel
Save