Make error messages even better!

Change-Id: I72bd1eb1d526dc59833e5bc3c636171f7f9545af
This commit is contained in:
Nick Kralevich
2013-10-04 09:45:24 -07:00
parent a81fd294be
commit 6861c6f85e
30 changed files with 32 additions and 32 deletions

View File

@@ -45,7 +45,7 @@ extern "C" char *__strcpy_chk (char *dest, const char *src, size_t dest_len) {
// TODO: optimize so we don't scan src twice.
size_t src_len = strlen(src) + 1;
if (__predict_false(src_len > dest_len)) {
__fortify_chk_fail("strcpy buffer overflow prevented",
__fortify_chk_fail("strcpy prevented write past end of buffer",
BIONIC_EVENT_STRCPY_BUFFER_OVERFLOW);
}