diff options
author | Nick Kralevich <nnk@google.com> | 2013-10-04 09:45:24 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2013-10-04 11:43:30 -0700 |
commit | 6861c6f85e6563695c4763e56756398c9d5f6e14 (patch) | |
tree | c1d460b532b20b094f8bad905159f62a076c7eaf /libc/bionic/__strcpy_chk.cpp | |
parent | a81fd294be55f8781dbf22f381a3335212d8dbd9 (diff) | |
download | bionic-6861c6f85e6563695c4763e56756398c9d5f6e14.zip bionic-6861c6f85e6563695c4763e56756398c9d5f6e14.tar.gz bionic-6861c6f85e6563695c4763e56756398c9d5f6e14.tar.bz2 |
Make error messages even better!
Change-Id: I72bd1eb1d526dc59833e5bc3c636171f7f9545af
Diffstat (limited to 'libc/bionic/__strcpy_chk.cpp')
-rw-r--r-- | libc/bionic/__strcpy_chk.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/__strcpy_chk.cpp b/libc/bionic/__strcpy_chk.cpp index e92e539..41990f9 100644 --- a/libc/bionic/__strcpy_chk.cpp +++ b/libc/bionic/__strcpy_chk.cpp @@ -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); } |