commit | bee0ab16e47086d2f31f6f9ff41328066d5a7128 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Tue Apr 30 23:13:04 2013 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Apr 30 23:13:04 2013 +0000 |
tree | 2f88c2c3c967fda99f5f17c5bbaa417a52206364 | |
parent | c46871302e7bd099aaf54d91da93a2248acbf733 [diff] | |
parent | 3b2e6bc9acf5223db6e9967e46066219c76ee56f [diff] |
Merge "libc: upgrade strrchr to FORTIFY_SOURCE=2"
diff --git a/libc/include/string.h b/libc/include/string.h index c0df686..b4cf70e 100644 --- a/libc/include/string.h +++ b/libc/include/string.h
@@ -249,7 +249,7 @@ __BIONIC_FORTIFY_INLINE char* strrchr(const char *s, int c) { - size_t bos = __builtin_object_size(s, 0); + size_t bos = __bos(s); // Compiler doesn't know destination size. Don't call __strrchr_chk if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {