summaryrefslogtreecommitdiffstats
path: root/libc/string/__strncpy_chk.c
diff options
context:
space:
mode:
authorGeremy Condra <gcondra@google.com>2012-06-08 14:39:11 -0700
committerGeremy Condra <gcondra@google.com>2012-06-11 11:30:56 -0700
commit009f38478e6a1c47aa355b0aed80b69ba91b9c61 (patch)
tree4ddfedaecd744900e449d68972157afb99f27908 /libc/string/__strncpy_chk.c
parent76656afc6dd069fcfda5768e6e54bb85e4e99942 (diff)
downloadbionic-009f38478e6a1c47aa355b0aed80b69ba91b9c61.zip
bionic-009f38478e6a1c47aa355b0aed80b69ba91b9c61.tar.gz
bionic-009f38478e6a1c47aa355b0aed80b69ba91b9c61.tar.bz2
Added actual event logging calls to the FORTIFY_SOURCE methods.
Change-Id: I3bf4fa8678c33187cb8ce4b75e666ddcd24403ab
Diffstat (limited to 'libc/string/__strncpy_chk.c')
-rw-r--r--libc/string/__strncpy_chk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/string/__strncpy_chk.c b/libc/string/__strncpy_chk.c
index b87ef4b..3f9e9fb 100644
--- a/libc/string/__strncpy_chk.c
+++ b/libc/string/__strncpy_chk.c
@@ -47,6 +47,7 @@ char *__strncpy_chk (char *dest, const char *src,
if (len > dest_len) {
__libc_android_log_print(ANDROID_LOG_FATAL, "libc",
"*** strncpy buffer overflow detected ***\n");
+ __libc_android_log_event_uid(BIONIC_EVENT_STRNCPY_BUFFER_OVERFLOW);
abort();
}