Skip to content
Snippets Groups Projects
Commit 2bf5169f authored by Craig Tiller's avatar Craig Tiller
Browse files

Prevent infinite loop

parent ac1ac3ab
No related branches found
No related tags found
No related merge requests found
...@@ -42,9 +42,12 @@ ...@@ -42,9 +42,12 @@
#ifdef __linux__ #ifdef __linux__
#ifdef __x86_64__ #ifdef __x86_64__
__asm__(".symver memcpy,memcpy@GLIBC_2.2.5"); __asm__(".symver memcpy,memcpy@GLIBC_2.2.5");
#endif
void *__wrap_memcpy(void *destination, const void *source, size_t num) { void *__wrap_memcpy(void *destination, const void *source, size_t num) {
return memcpy(destination, source, 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 #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment