Bug 1434726 - Early startup crash on Linux sparc64 in HashIIDPtrKey
authorMichael Karcher <debian@mkarcher.dialup.fu-berlin.de>
Wed, 31 Jan 2018 23:04:36 +0000 (00:04 +0100)
committerCarsten Schoenert <c.schoenert@t-online.de>
Tue, 9 Jul 2019 20:09:04 +0000 (21:09 +0100)
Origin: not yet exist
Bug-Debian: not yet exist
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1434726
Applied-Upstream: TBD

Gbp-Pq: Topic porting-sparc64
Gbp-Pq: Name Bug-1434726-Early-startup-crash-on-Linux-sparc64-in-HashI.patch

js/xpconnect/src/XPCMaps.cpp

index 5abdcf16581fd00355315f3616fe2b4293d0a735..98e126fb2e20aaa0aa5eac9a53ecce32faac45c7 100644 (file)
@@ -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) {