Skip to content

Commit 8584ba5

Browse files
authored
firefox: fix sigbus on arm (#29135)
1 parent 0881b6b commit 8584ba5

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Fix SIGBUS error on Arm
2+
3+
https://github.com/termux/termux-packages/issues/29024
4+
https://bugzilla.mozilla.org/show_bug.cgi?id=1844117
5+
6+
--- a/extensions/spellcheck/hunspell/src/hashmgr.cxx
7+
+++ b/extensions/spellcheck/hunspell/src/hashmgr.cxx
8+
@@ -1396,6 +1396,9 @@
9+
}
10+
11+
void* HashMgr::arena_alloc(int num_bytes) {
12+
+#if defined(__arm__)
13+
+ num_bytes = (((num_bytes + 7) >> 3) << 3);
14+
+#endif
15+
static const int MIN_CHUNK_SIZE = 4096;
16+
if (arena.empty() || (current_chunk_size - current_chunk_offset < num_bytes)) {
17+
current_chunk_size = std::max(MIN_CHUNK_SIZE, num_bytes);

x11-packages/firefox/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Mozilla Firefox web browser"
33
TERMUX_PKG_LICENSE="MPL-2.0"
44
TERMUX_PKG_MAINTAINER="@termux"
55
TERMUX_PKG_VERSION="149.0+really148.0.2"
6+
TERMUX_PKG_REVISION=1
67
TERMUX_PKG_SRCURL="https://archive.mozilla.org/pub/firefox/releases/${TERMUX_PKG_VERSION#*really}/source/firefox-${TERMUX_PKG_VERSION#*really}.source.tar.xz"
78
TERMUX_PKG_SHA256=a6cb8e4d5e596cd52475bab9b4d399240f10c4211718b9d72ca6b2e9c9244e90
89
# ffmpeg and pulseaudio are dependencies through dlopen(3):

0 commit comments

Comments
 (0)