head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.8 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.6 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.4 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q2:1.2.0.2 pkgsrc-2011Q2-base:1.2 pkgsrc-2011Q1:1.1.0.14 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.12 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.10 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.8 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.6 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.4 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.2 pkgsrc-2009Q3-base:1.1; locks; strict; comment @# @; 1.2 date 2011.04.26.14.16.37; author tnn; state dead; branches; next 1.1; 1.1 date 2009.09.09.17.01.07; author tnn; state Exp; branches; next ; desc @@ 1.2 log @Update to firefox-4.0. Firefox 4 is based on the Gecko 2.0 Web platform. This release features JavaScript execution speeds up to six times faster than the previous version, new capabilities for Web Developers and Add-on Developers such as hardware accelerated graphics and HTML5 technologies, and a completely revised user interface. @ text @$NetBSD: patch-nd,v 1.1 2009/09/09 17:01:07 tnn Exp $ # reported upstream as # https://bugzilla.mozilla.org/show_bug.cgi?id=514002 --- gfx/qcms/iccread.c.orig 2009-07-30 17:30:16.000000000 +0200 +++ gfx/qcms/iccread.c 2009-09-01 21:29:29.000000000 +0200 @@@@ -23,6 +23,7 @@@@ #include #include #include +#include #include "qcmsint.h" //XXX: use a better typename @@@@ -84,7 +85,9 @@@@ static uint32_t read_u32(struct mem_sour invalid_source(mem, "Invalid offset"); return 0; } else { - return be32_to_cpu(*(__be32*)(mem->buf + offset)); + uint32_t v; + memcpy(&v, mem->buf + offset, 4); + return be32_to_cpu(v); } } @@@@ -94,7 +97,9 @@@@ static uint16_t read_u16(struct mem_sour invalid_source(mem, "Invalid offset"); return 0; } else { - return be16_to_cpu(*(__be16*)(mem->buf + offset)); + uint16_t v; + memcpy(&v, mem->buf + offset, 2); + return be16_to_cpu(v); } } @ 1.1 log @sync patches from www/firefox @ text @d1 1 a1 1 $NetBSD: patch-nd,v 1.1 2009/09/01 20:36:19 martin Exp $ @