blob: 7df0b058de7546c3a55782729ae32d0ccb9b8212 [file] [log] [blame]
George Burgess IVb97049c2017-07-24 15:05:05 -07001/*
2 * Copyright (C) 2017 The Android Open Source Project
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in
12 * the documentation and/or other materials provided with the
13 * distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
16 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
17 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
18 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
19 * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
20 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
21 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
22 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
25 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 */
28
29#ifndef _STRING_H
30#error "Never include this file directly; instead, include <string.h>"
31#endif
32
zijunzhao6d23a082023-06-09 21:34:24 +000033void* _Nullable __memchr_chk(const void* _Nonnull, int, size_t, size_t) __INTRODUCED_IN(23);
34void* _Nullable __memrchr_chk(const void* _Nonnull, int, size_t, size_t) __INTRODUCED_IN(23);
Elliott Hughes655e4302023-06-16 12:39:33 -070035char* _Nonnull __stpncpy_chk2(char* _Nonnull, const char* _Nonnull, size_t, size_t, size_t);
36char* _Nonnull __strncpy_chk2(char* _Nonnull, const char* _Nonnull, size_t, size_t, size_t);
37size_t __strlcpy_chk(char* _Nonnull, const char* _Nonnull, size_t, size_t);
38size_t __strlcat_chk(char* _Nonnull, const char* _Nonnull, size_t, size_t);
George Burgess IVb97049c2017-07-24 15:05:05 -070039
George Burgess IVb97049c2017-07-24 15:05:05 -070040#if defined(__BIONIC_FORTIFY)
zijunzhao6d23a082023-06-09 21:34:24 +000041extern void* _Nullable __memrchr_real(const void* _Nonnull, int, size_t) __RENAME(memrchr);
Elliott Hughesdf9a4892017-08-23 14:34:03 -070042
Elliott Hughesf4ace9d2023-02-23 17:38:37 +000043#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IV36926f42019-09-15 16:57:00 -070044/* No diag -- clang diagnoses misuses of this on its own. */
George Burgess IVb97049c2017-07-24 15:05:05 -070045__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +000046void* _Nonnull memcpy(void* _Nonnull const dst __pass_object_size0, const void* _Nonnull src, size_t copy_amount)
Pirama Arumuga Nainardb71def2022-01-06 15:46:55 -080047 __diagnose_as_builtin(__builtin_memcpy, 1, 2, 3)
George Burgess IV36926f42019-09-15 16:57:00 -070048 __overloadable {
George Burgess IV2f787652020-02-04 21:40:40 -080049 return __builtin___memcpy_chk(dst, src, copy_amount, __bos0(dst));
George Burgess IVb97049c2017-07-24 15:05:05 -070050}
51
George Burgess IV36926f42019-09-15 16:57:00 -070052/* No diag -- clang diagnoses misuses of this on its own. */
George Burgess IVb97049c2017-07-24 15:05:05 -070053__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +000054void* _Nonnull memmove(void* _Nonnull const dst __pass_object_size0, const void* _Nonnull src, size_t len)
Pirama Arumuga Nainardb71def2022-01-06 15:46:55 -080055 __diagnose_as_builtin(__builtin_memmove, 1, 2, 3)
56 __overloadable {
George Burgess IV2f787652020-02-04 21:40:40 -080057 return __builtin___memmove_chk(dst, src, len, __bos0(dst));
George Burgess IVb97049c2017-07-24 15:05:05 -070058}
George Burgess IV8a0cdb12019-10-21 13:27:57 -070059#endif
George Burgess IVb97049c2017-07-24 15:05:05 -070060
George Burgess IV849c0b92019-06-10 16:22:09 -070061#if defined(__USE_GNU)
Elliott Hughes95c6cd72019-12-20 13:26:14 -080062#if __ANDROID_API__ >= 30
George Burgess IV849c0b92019-06-10 16:22:09 -070063__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +000064void* _Nonnull mempcpy(void* _Nonnull const dst __pass_object_size0, const void* _Nonnull src, size_t copy_amount)
Pirama Arumuga Nainardb71def2022-01-06 15:46:55 -080065 __diagnose_as_builtin(__builtin_mempcpy, 1, 2, 3)
George Burgess IV849c0b92019-06-10 16:22:09 -070066 __overloadable
67 __clang_error_if(__bos_unevaluated_lt(__bos0(dst), copy_amount),
68 "'mempcpy' called with size bigger than buffer") {
George Burgess IV8a0cdb12019-10-21 13:27:57 -070069#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IV849c0b92019-06-10 16:22:09 -070070 size_t bos_dst = __bos0(dst);
George Burgess IV8a0cdb12019-10-21 13:27:57 -070071 if (!__bos_trivially_ge(bos_dst, copy_amount)) {
72 return __builtin___mempcpy_chk(dst, src, copy_amount, bos_dst);
George Burgess IV849c0b92019-06-10 16:22:09 -070073 }
George Burgess IV8a0cdb12019-10-21 13:27:57 -070074#endif
75 return __builtin_mempcpy(dst, src, copy_amount);
George Burgess IV849c0b92019-06-10 16:22:09 -070076}
Elliott Hughes95c6cd72019-12-20 13:26:14 -080077#endif /* __ANDROID_API__ >= 30 */
George Burgess IVfd1ff4b2019-09-18 17:29:55 -070078#endif /* __USE_GNU */
George Burgess IV849c0b92019-06-10 16:22:09 -070079
George Burgess IVb97049c2017-07-24 15:05:05 -070080__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +000081char* _Nonnull stpcpy(char* _Nonnull const dst __pass_object_size, const char* _Nonnull src)
George Burgess IVb6300462017-07-31 21:29:42 -070082 __overloadable
George Burgess IVc03d5962019-05-23 15:22:01 -070083 __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)),
George Burgess IVb6300462017-07-31 21:29:42 -070084 "'stpcpy' called with string bigger than buffer") {
Elliott Hughesf4ace9d2023-02-23 17:38:37 +000085#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IV2f787652020-02-04 21:40:40 -080086 return __builtin___stpcpy_chk(dst, src, __bos(dst));
87#else
George Burgess IVfd1ff4b2019-09-18 17:29:55 -070088 return __builtin_stpcpy(dst, src);
George Burgess IV2f787652020-02-04 21:40:40 -080089#endif
George Burgess IVfd1ff4b2019-09-18 17:29:55 -070090}
George Burgess IVb97049c2017-07-24 15:05:05 -070091
George Burgess IVb97049c2017-07-24 15:05:05 -070092__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +000093char* _Nonnull strcpy(char* _Nonnull const dst __pass_object_size, const char* _Nonnull src)
Pirama Arumuga Nainardb71def2022-01-06 15:46:55 -080094 __diagnose_as_builtin(__builtin_strcpy, 1, 2)
George Burgess IVb6300462017-07-31 21:29:42 -070095 __overloadable
George Burgess IVc03d5962019-05-23 15:22:01 -070096 __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)),
George Burgess IVb6300462017-07-31 21:29:42 -070097 "'strcpy' called with string bigger than buffer") {
Elliott Hughesf4ace9d2023-02-23 17:38:37 +000098#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IV2f787652020-02-04 21:40:40 -080099 return __builtin___strcpy_chk(dst, src, __bos(dst));
100#else
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700101 return __builtin_strcpy(dst, src);
George Burgess IV2f787652020-02-04 21:40:40 -0800102#endif
George Burgess IVb97049c2017-07-24 15:05:05 -0700103}
104
105__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000106char* _Nonnull strcat(char* _Nonnull const dst __pass_object_size, const char* _Nonnull src)
George Burgess IV77f99aa2019-06-06 14:14:52 -0700107 __overloadable
108 __clang_error_if(__bos_unevaluated_le(__bos(dst), __builtin_strlen(src)),
109 "'strcat' called with string bigger than buffer") {
Elliott Hughesf4ace9d2023-02-23 17:38:37 +0000110#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IVb97049c2017-07-24 15:05:05 -0700111 return __builtin___strcat_chk(dst, src, __bos(dst));
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700112#else
113 return __builtin_strcat(dst, src);
George Burgess IV8a0cdb12019-10-21 13:27:57 -0700114#endif
George Burgess IVb97049c2017-07-24 15:05:05 -0700115}
116
Elliott Hughesf4ace9d2023-02-23 17:38:37 +0000117#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IV36926f42019-09-15 16:57:00 -0700118/* No diag -- clang diagnoses misuses of this on its own. */
George Burgess IVb97049c2017-07-24 15:05:05 -0700119__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000120char* _Nonnull strncat(char* _Nonnull const dst __pass_object_size, const char* _Nonnull src, size_t n)
Pirama Arumuga Nainardb71def2022-01-06 15:46:55 -0800121 __diagnose_as_builtin(__builtin_strncat, 1, 2, 3)
122 __overloadable {
George Burgess IVb97049c2017-07-24 15:05:05 -0700123 return __builtin___strncat_chk(dst, src, n, __bos(dst));
124}
George Burgess IV8a0cdb12019-10-21 13:27:57 -0700125#endif
George Burgess IVb97049c2017-07-24 15:05:05 -0700126
George Burgess IV36926f42019-09-15 16:57:00 -0700127/* No diag -- clang diagnoses misuses of this on its own. */
George Burgess IVb97049c2017-07-24 15:05:05 -0700128__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000129void* _Nonnull memset(void* _Nonnull const s __pass_object_size0, int c, size_t n) __overloadable
Pirama Arumuga Nainardb71def2022-01-06 15:46:55 -0800130 __diagnose_as_builtin(__builtin_memset, 1, 2, 3)
George Burgess IVb6300462017-07-31 21:29:42 -0700131 /* If you're a user who wants this warning to go away: use `(&memset)(foo, bar, baz)`. */
132 __clang_warning_if(c && !n, "'memset' will set 0 bytes; maybe the arguments got flipped?") {
Elliott Hughesf4ace9d2023-02-23 17:38:37 +0000133#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IV2f787652020-02-04 21:40:40 -0800134 return __builtin___memset_chk(s, c, n, __bos0(s));
135#else
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700136 return __builtin_memset(s, c, n);
George Burgess IV2f787652020-02-04 21:40:40 -0800137#endif
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700138}
George Burgess IVb97049c2017-07-24 15:05:05 -0700139
Elliott Hughes95c6cd72019-12-20 13:26:14 -0800140#if __ANDROID_API__ >= 23 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IVb97049c2017-07-24 15:05:05 -0700141__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000142void* _Nullable memchr(const void* _Nonnull const s __pass_object_size, int c, size_t n) __overloadable {
George Burgess IVb97049c2017-07-24 15:05:05 -0700143 size_t bos = __bos(s);
144
George Burgess IVc03d5962019-05-23 15:22:01 -0700145 if (__bos_trivially_ge(bos, n)) {
George Burgess IVb97049c2017-07-24 15:05:05 -0700146 return __builtin_memchr(s, c, n);
147 }
148
149 return __memchr_chk(s, c, n, bos);
150}
151
152__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000153void* _Nullable __memrchr_fortify(const void* _Nonnull const __pass_object_size s, int c, size_t n) __overloadable {
George Burgess IVb97049c2017-07-24 15:05:05 -0700154 size_t bos = __bos(s);
155
George Burgess IVc03d5962019-05-23 15:22:01 -0700156 if (__bos_trivially_ge(bos, n)) {
Elliott Hughesdf9a4892017-08-23 14:34:03 -0700157 return __memrchr_real(s, c, n);
George Burgess IVb97049c2017-07-24 15:05:05 -0700158 }
159
160 return __memrchr_chk(s, c, n, bos);
161}
George Burgess IV8a0cdb12019-10-21 13:27:57 -0700162#endif
George Burgess IVb97049c2017-07-24 15:05:05 -0700163
Elliott Hughesf4ace9d2023-02-23 17:38:37 +0000164#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IV36926f42019-09-15 16:57:00 -0700165/* No diag -- clang diagnoses misuses of this on its own. */
George Burgess IVb97049c2017-07-24 15:05:05 -0700166__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000167char* _Nonnull stpncpy(char* _Nonnull const dst __pass_object_size, const char* _Nonnull const src __pass_object_size, size_t n)
Pirama Arumuga Nainardb71def2022-01-06 15:46:55 -0800168 __diagnose_as_builtin(__builtin_stpncpy, 1, 2, 3)
George Burgess IV36926f42019-09-15 16:57:00 -0700169 __overloadable {
George Burgess IVb97049c2017-07-24 15:05:05 -0700170 size_t bos_dst = __bos(dst);
171 size_t bos_src = __bos(src);
172
173 /* Ignore dst size checks; they're handled in strncpy_chk */
174 if (bos_src == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
175 return __builtin___stpncpy_chk(dst, src, n, bos_dst);
176 }
177
178 return __stpncpy_chk2(dst, src, n, bos_dst, bos_src);
179}
180
George Burgess IV36926f42019-09-15 16:57:00 -0700181/* No diag -- clang diagnoses misuses of this on its own. */
George Burgess IVb97049c2017-07-24 15:05:05 -0700182__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000183char* _Nonnull strncpy(char* _Nonnull const dst __pass_object_size, const char* _Nonnull const src __pass_object_size, size_t n)
Pirama Arumuga Nainardb71def2022-01-06 15:46:55 -0800184 __diagnose_as_builtin(__builtin_strncpy, 1, 2, 3)
George Burgess IV36926f42019-09-15 16:57:00 -0700185 __overloadable {
George Burgess IVb97049c2017-07-24 15:05:05 -0700186 size_t bos_dst = __bos(dst);
187 size_t bos_src = __bos(src);
188
189 /* Ignore dst size checks; they're handled in strncpy_chk */
190 if (bos_src == __BIONIC_FORTIFY_UNKNOWN_SIZE) {
191 return __builtin___strncpy_chk(dst, src, n, bos_dst);
192 }
193
194 return __strncpy_chk2(dst, src, n, bos_dst, bos_src);
195}
George Burgess IV8a0cdb12019-10-21 13:27:57 -0700196#endif
George Burgess IVb97049c2017-07-24 15:05:05 -0700197
George Burgess IVb97049c2017-07-24 15:05:05 -0700198__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000199size_t strlcpy(char* _Nonnull const dst __pass_object_size, const char* _Nonnull src, size_t size)
George Burgess IV77f99aa2019-06-06 14:14:52 -0700200 __overloadable
201 __clang_error_if(__bos_unevaluated_lt(__bos(dst), size),
202 "'strlcpy' called with size bigger than buffer") {
Elliott Hughesf4ace9d2023-02-23 17:38:37 +0000203#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IV2f787652020-02-04 21:40:40 -0800204 return __strlcpy_chk(dst, src, size, __bos(dst));
205#else
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700206 return __call_bypassing_fortify(strlcpy)(dst, src, size);
George Burgess IV2f787652020-02-04 21:40:40 -0800207#endif
George Burgess IVb97049c2017-07-24 15:05:05 -0700208}
209
210__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000211size_t strlcat(char* _Nonnull const dst __pass_object_size, const char* _Nonnull src, size_t size)
George Burgess IV77f99aa2019-06-06 14:14:52 -0700212 __overloadable
213 __clang_error_if(__bos_unevaluated_lt(__bos(dst), size),
214 "'strlcat' called with size bigger than buffer") {
Elliott Hughesf4ace9d2023-02-23 17:38:37 +0000215#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IV2f787652020-02-04 21:40:40 -0800216 return __strlcat_chk(dst, src, size, __bos(dst));
George Burgess IVd02e7b12020-02-13 11:44:20 -0800217#else
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700218 return __call_bypassing_fortify(strlcat)(dst, src, size);
George Burgess IVd02e7b12020-02-13 11:44:20 -0800219#endif
George Burgess IVb97049c2017-07-24 15:05:05 -0700220}
221
Elliott Hughesf4ace9d2023-02-23 17:38:37 +0000222#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IVb97049c2017-07-24 15:05:05 -0700223__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000224size_t strlen(const char* _Nonnull const s __pass_object_size0) __overloadable {
George Burgess IVd02e7b12020-02-13 11:44:20 -0800225 return __strlen_chk(s, __bos0(s));
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700226}
George Burgess IVd02e7b12020-02-13 11:44:20 -0800227#endif
George Burgess IVb97049c2017-07-24 15:05:05 -0700228
George Burgess IVb97049c2017-07-24 15:05:05 -0700229__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000230char* _Nullable strchr(const char* _Nonnull const s __pass_object_size, int c) __overloadable {
Elliott Hughesf4ace9d2023-02-23 17:38:37 +0000231#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IVb97049c2017-07-24 15:05:05 -0700232 size_t bos = __bos(s);
233
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700234 if (bos != __BIONIC_FORTIFY_UNKNOWN_SIZE) {
235 return __strchr_chk(s, c, bos);
George Burgess IVb97049c2017-07-24 15:05:05 -0700236 }
George Burgess IV8a0cdb12019-10-21 13:27:57 -0700237#endif
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700238 return __builtin_strchr(s, c);
George Burgess IVb97049c2017-07-24 15:05:05 -0700239}
240
241__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000242char* _Nullable strrchr(const char* _Nonnull const s __pass_object_size, int c) __overloadable {
Elliott Hughesf4ace9d2023-02-23 17:38:37 +0000243#if __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
George Burgess IVb97049c2017-07-24 15:05:05 -0700244 size_t bos = __bos(s);
245
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700246 if (bos != __BIONIC_FORTIFY_UNKNOWN_SIZE) {
247 return __strrchr_chk(s, c, bos);
George Burgess IVb97049c2017-07-24 15:05:05 -0700248 }
George Burgess IV8a0cdb12019-10-21 13:27:57 -0700249#endif
George Burgess IVfd1ff4b2019-09-18 17:29:55 -0700250 return __builtin_strrchr(s, c);
251}
George Burgess IVb97049c2017-07-24 15:05:05 -0700252
Elliott Hughes95c6cd72019-12-20 13:26:14 -0800253#if __ANDROID_API__ >= 23 && __BIONIC_FORTIFY_RUNTIME_CHECKS_ENABLED
Elliott Hughesdf9a4892017-08-23 14:34:03 -0700254#if defined(__cplusplus)
255extern "C++" {
256__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000257void* _Nullable memrchr(void* _Nonnull const __pass_object_size s, int c, size_t n) {
Elliott Hughesdf9a4892017-08-23 14:34:03 -0700258 return __memrchr_fortify(s, c, n);
259}
260
261__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000262const void* _Nullable memrchr(const void* _Nonnull const __pass_object_size s, int c, size_t n) {
Elliott Hughesdf9a4892017-08-23 14:34:03 -0700263 return __memrchr_fortify(s, c, n);
264}
265}
266#else
267__BIONIC_FORTIFY_INLINE
zijunzhao6d23a082023-06-09 21:34:24 +0000268void* _Nullable memrchr(const void* _Nonnull const __pass_object_size s, int c, size_t n) __overloadable {
Elliott Hughesdf9a4892017-08-23 14:34:03 -0700269 return __memrchr_fortify(s, c, n);
270}
271#endif
Elliott Hughes95c6cd72019-12-20 13:26:14 -0800272#endif /* __ANDROID_API__ >= 23 */
Elliott Hughesdf9a4892017-08-23 14:34:03 -0700273
George Burgess IVb97049c2017-07-24 15:05:05 -0700274#endif /* defined(__BIONIC_FORTIFY) */