Package: thunderbird / 1:60.8.0-1~deb9u1

porting-sparc64/Bug-1434726-Early-startup-crash-on-Linux-sparc64-in-HashI.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From: Michael Karcher <debian@mkarcher.dialup.fu-berlin.de>
Date: Thu, 1 Feb 2018 00:04:36 +0100
Subject: Bug 1434726 - Early startup crash on Linux sparc64 in HashIIDPtrKey

Origin: not yet exist
Bug-Debian: not yet exist
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1434726
Applied-Upstream: TBD
---
 js/xpconnect/src/XPCMaps.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/xpconnect/src/XPCMaps.cpp b/js/xpconnect/src/XPCMaps.cpp
index 5abdcf1..98e126f 100644
--- a/js/xpconnect/src/XPCMaps.cpp
+++ b/js/xpconnect/src/XPCMaps.cpp
@@ -21,7 +21,7 @@ using namespace mozilla;
 // nsID, not the hash of the pointer to the nsID.
 
 static PLDHashNumber HashIIDPtrKey(const void* key) {
-  return HashGeneric(*((uintptr_t*)key));
+  return HashGeneric(((nsID*)key)->m0);
 }
 
 static bool MatchIIDPtrKey(const PLDHashEntryHdr* entry, const void* key) {