Skip to content

Instantly share code, notes, and snippets.

@Tener
Forked from nicky-zs/memcpy.c
Created June 27, 2014 09:38
Show Gist options
  • Save Tener/cf2674bd319894b016bb to your computer and use it in GitHub Desktop.
Save Tener/cf2674bd319894b016bb to your computer and use it in GitHub Desktop.
#include <string.h>
void *__memcpy_glibc_2_2_5(void *, const void *, size_t);
asm(".symver __memcpy_glibc_2_2_5, memcpy@GLIBC_2.2.5");
void *__wrap_memcpy(void *dest, const void *src, size_t n)
{
return __memcpy_glibc_2_2_5(dest, src, n);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment