-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firefox: avoid using the highest byte of pointer
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
https://github.com/termux/termux-packages/issues/22907 | ||
|
||
--- a/layout/generic/IntrinsicISizesCache.h | ||
+++ b/layout/generic/IntrinsicISizesCache.h | ||
@@ -142,7 +142,12 @@ | ||
}; | ||
|
||
static constexpr uintptr_t kHighBit = uintptr_t(1) | ||
+// The first byte of pointer is reserved since Android 11. | ||
+#if defined(HAVE_64BIT_BUILD) && defined(__TERMUX__) | ||
+ << (sizeof(void*) * CHAR_BIT - 1 - CHAR_BIT); | ||
+#else | ||
<< (sizeof(void*) * CHAR_BIT - 1); | ||
+#endif | ||
|
||
bool IsOutOfLine() const { | ||
#ifdef HAVE_64BIT_BUILD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters