libc: upgrade strrchr to FORTIFY_SOURCE=2
Change-Id: I4c34c2ce22c5092c4446dc1ab55f37604c1c223f
This commit is contained in:
parent
c46871302e
commit
3b2e6bc9ac
1 changed files with 1 additions and 1 deletions
|
@ -249,7 +249,7 @@ extern char* __strrchr_chk(const char *, int, size_t);
|
|||
|
||||
__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) {
|
||||
|
|
Loading…
Reference in a new issue