head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.10 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.8 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.6 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.4 pkgsrc-2011Q2-base:1.2 pkgsrc-2009Q4:1.2.0.2 pkgsrc-2009Q4-base:1.2 pkgsrc-2009Q2:1.1.0.6 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.4 pkgsrc-2009Q1-base:1.1 pkgsrc-2008Q4:1.1.0.2 pkgsrc-2008Q4-base:1.1; locks; strict; comment @# @; 1.2 date 2009.09.22.13.17.30; author tnn; state dead; branches; next 1.1; 1.1 date 2008.12.13.00.42.26; author martin; state Exp; branches; next ; desc @@ 1.2 log @Send firefox3 on it's way to the happy hunting ground. @ text @$NetBSD: patch-ee,v 1.1 2008/12/13 00:42:26 martin Exp $ # reported upstream as: https://bugzilla.mozilla.org/show_bug.cgi?id=469276 --- toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp.orig 2008-08-25 22:59:14.000000000 +0200 +++ toolkit/components/url-classifier/src/nsUrlClassifierDBService.cpp 2008-12-12 16:31:11.000000000 +0100 @@@@ -2023,8 +2023,9 @@@@ return NS_ERROR_FAILURE; } const nsCSubstring& str = Substring(chunk, start, 4); - const PRUint32 *p = reinterpret_cast(str.BeginReading()); - entry->mAddChunkId = PR_ntohl(*p); + PRUint32 p; + memcpy(&p, str.BeginReading(), 4); + entry->mAddChunkId = PR_ntohl(p); if (entry->mAddChunkId == 0) { NS_WARNING("Received invalid chunk number."); return NS_ERROR_FAILURE; @@@@ -2052,8 +2053,9 @@@@ if (chunkType == CHUNK_SUB) { const nsCSubstring& str = Substring(chunk, start, 4); - const PRUint32 *p = reinterpret_cast(str.BeginReading()); - entry->mAddChunkId = PR_ntohl(*p); + PRUint32 p; + memcpy(&p, str.BeginReading(), 4); + entry->mAddChunkId = PR_ntohl(p); if (entry->mAddChunkId == 0) { NS_WARNING("Received invalid chunk number."); return NS_ERROR_FAILURE; @ 1.1 log @Make firefox3 work on sparc64. ok: tnn @ text @d1 1 a1 1 $NetBSD$ @