am bee0ab16
: Merge "libc: upgrade strrchr to FORTIFY_SOURCE=2"
* commit 'bee0ab16e47086d2f31f6f9ff41328066d5a7128': libc: upgrade strrchr to FORTIFY_SOURCE=2
This commit is contained in:
commit
8355ab5524
@ -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 New Issue
Block a user