summaryrefslogtreecommitdiffstats
path: root/libc/bionic/__memcpy_chk.cpp
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2013-10-04 09:45:24 -0700
committerNick Kralevich <nnk@google.com>2013-10-04 11:43:30 -0700
commit6861c6f85e6563695c4763e56756398c9d5f6e14 (patch)
treec1d460b532b20b094f8bad905159f62a076c7eaf /libc/bionic/__memcpy_chk.cpp
parenta81fd294be55f8781dbf22f381a3335212d8dbd9 (diff)
downloadbionic-6861c6f85e6563695c4763e56756398c9d5f6e14.zip
bionic-6861c6f85e6563695c4763e56756398c9d5f6e14.tar.gz
bionic-6861c6f85e6563695c4763e56756398c9d5f6e14.tar.bz2
Make error messages even better!
Change-Id: I72bd1eb1d526dc59833e5bc3c636171f7f9545af
Diffstat (limited to 'libc/bionic/__memcpy_chk.cpp')
-rw-r--r--libc/bionic/__memcpy_chk.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/__memcpy_chk.cpp b/libc/bionic/__memcpy_chk.cpp
index b95a0d7..2839795 100644
--- a/libc/bionic/__memcpy_chk.cpp
+++ b/libc/bionic/__memcpy_chk.cpp
@@ -46,7 +46,7 @@ extern "C" void *__memcpy_chk(void *dest, const void *src,
size_t copy_amount, size_t dest_len)
{
if (__predict_false(copy_amount > dest_len)) {
- __fortify_chk_fail("memcpy buffer overflow prevented",
+ __fortify_chk_fail("memcpy prevented write past end of buffer",
BIONIC_EVENT_MEMCPY_BUFFER_OVERFLOW);
}