am bee0ab16: Merge "libc: upgrade strrchr to FORTIFY_SOURCE=2"

* commit 'bee0ab16e47086d2f31f6f9ff41328066d5a7128':
  libc: upgrade strrchr to FORTIFY_SOURCE=2
This commit is contained in:
Nick Kralevich
2013-04-30 16:25:23 -07:00
committed by Android Git Automerger

View File

@@ -249,7 +249,7 @@ extern char* __strrchr_chk(const char *, int, size_t);
__BIONIC_FORTIFY_INLINE __BIONIC_FORTIFY_INLINE
char* strrchr(const char *s, int c) { 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 // Compiler doesn't know destination size. Don't call __strrchr_chk
if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) { if (bos == __BIONIC_FORTIFY_UNKNOWN_SIZE) {