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>
Mon, 24 Dec 2018 16:04:10 +0000 (16:04 +0000)
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 bb99b9f8c034c236e9e8d358804b422f96258e2a..837d5d78970fe6739cccca978e060a031fd9baf5 100644 (file)
@@ -23,7 +23,7 @@ using namespace mozilla;
 static PLDHashNumber
 HashIIDPtrKey(const void* key)
 {
-    return HashGeneric(*((uintptr_t*)key));
+    return HashGeneric(((nsID*)key)->m0);
 }
 
 static bool