diff options
author | Nick Kralevich <nnk@google.com> | 2013-05-30 16:48:53 -0700 |
---|---|---|
committer | Nick Kralevich <nnk@google.com> | 2013-05-31 09:07:46 -0700 |
commit | cf870199d576bdfc339b7fb016c9f6fe7f2c87ed (patch) | |
tree | e4bdb361862de3efd9b907379d0fe3f2ad3f4ae2 /libc/private/libc_logging.h | |
parent | 72f59c84fd73a0a701ce6448d103e9021c1cb060 (diff) | |
download | bionic-cf870199d576bdfc339b7fb016c9f6fe7f2c87ed.zip bionic-cf870199d576bdfc339b7fb016c9f6fe7f2c87ed.tar.gz bionic-cf870199d576bdfc339b7fb016c9f6fe7f2c87ed.tar.bz2 |
FORTIFY_SOURCE: strcat / strncat optimize
__strcat_chk and __strncat_chk are slightly inefficient,
because they end up traversing over the same memory region
two times.
This change optimizes __strcat_chk / __strncat_chk so they
only access the memory once. Although I haven't benchmarked these
changes, it should improve the performance of these functions.
__strlen_chk - expose this function, even if -D_FORTIFY_SOURCE
isn't defined. This is needed to compile libc itself without
-D_FORTIFY_SOURCE.
Change-Id: Id2c70dff55a276b47c59db27a03734d659f84b74
Diffstat (limited to 'libc/private/libc_logging.h')
-rw-r--r-- | libc/private/libc_logging.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/libc/private/libc_logging.h b/libc/private/libc_logging.h index c6e1765..e62ddf2 100644 --- a/libc/private/libc_logging.h +++ b/libc/private/libc_logging.h @@ -45,9 +45,6 @@ enum { BIONIC_EVENT_MEMSET_BUFFER_OVERFLOW = 80125, BIONIC_EVENT_STRCPY_BUFFER_OVERFLOW = 80130, - BIONIC_EVENT_STRCAT_INTEGER_OVERFLOW = 80200, - BIONIC_EVENT_STRNCAT_INTEGER_OVERFLOW = 80205, - BIONIC_EVENT_RESOLVER_OLD_RESPONSE = 80300, BIONIC_EVENT_RESOLVER_WRONG_SERVER = 80305, BIONIC_EVENT_RESOLVER_WRONG_QUERY = 80310, |