We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b17a047 commit 08d3387Copy full SHA for 08d3387
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -1223,6 +1223,9 @@ uptr GetPageSize() {
1223
# if SANITIZER_ANDROID && __ANDROID_API__ < 35
1224
// The 16 KB page size was introduced in Android 15 (API level 35), while
1225
// earlier versions of Android always used a 4 KB page size.
1226
+ // We are checking the weak definition of `strerrorname_np` (introduced in API
1227
+ // level 35) because some earlier API levels crashed when
1228
+ // `getauxval(AT_PAGESZ)` was called from the `.preinit_array`.
1229
if (!strerrorname_np)
1230
return 4096;
1231
# endif
0 commit comments