Merge "FORTIFY_SOURCE: restore __memcpy_chk()"

This commit is contained in:
Nick Kralevich 2012-07-13 14:52:26 -07:00 committed by android code review
commit ad7f966281

View File

@ -70,3 +70,13 @@ void *__memcpy_chk2(void *dest, const void *src,
return memcpy(dest, src, copy_amount);
}
/*
* GCC can create references to __memcpy_chk when using
* __builtin__memmove_chk().
*/
void *__memcpy_chk(void *dest, const void *src,
size_t copy_amount, size_t dest_len)
{
return __memcpy_chk2(dest, src, copy_amount, dest_len, (size_t) -1);
}