summaryrefslogtreecommitdiffstats
path: root/abs/core/ghostscript/svn_rev11948.diff
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-08-07 02:23:50 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-08-07 02:23:50 (GMT)
commit2e4361d7e1a7815e79bc8aff478d7089278882de (patch)
tree7dab28de1bda3482d7fc95507140bb42827ef956 /abs/core/ghostscript/svn_rev11948.diff
parent37f0ed2c99873a5f175a837ae46358664e34862a (diff)
downloadlinhes_pkgbuild-2e4361d7e1a7815e79bc8aff478d7089278882de.zip
linhes_pkgbuild-2e4361d7e1a7815e79bc8aff478d7089278882de.tar.gz
linhes_pkgbuild-2e4361d7e1a7815e79bc8aff478d7089278882de.tar.bz2
ghostscript 9.05
Diffstat (limited to 'abs/core/ghostscript/svn_rev11948.diff')
-rw-r--r--abs/core/ghostscript/svn_rev11948.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/abs/core/ghostscript/svn_rev11948.diff b/abs/core/ghostscript/svn_rev11948.diff
new file mode 100644
index 0000000..92abb0d
--- /dev/null
+++ b/abs/core/ghostscript/svn_rev11948.diff
@@ -0,0 +1,16 @@
+Modified: trunk/gs/base/gximag3x.c
+===================================================================
+--- trunk/gs/base/gximag3x.c 2010-12-10 19:50:53 UTC (rev 11947)
++++ trunk/gs/base/gximag3x.c 2010-12-11 23:02:25 UTC (rev 11948)
+@@ -241,7 +241,9 @@
+ const gs_image3x_mask_t *pixm =
+ (i == 0 ? &pim->Opacity : &pim->Shape);
+
+- *(gs_data_image_t *)&mask[i].image = pixm->MaskDict;
++ /* Use memcpy because direct assignment breaks ANSI aliasing */
++ /* rules and causes SEGV with gcc 4.5.1 */
++ memcpy(&mask[i].image, &pixm->MaskDict, sizeof(pixm->MaskDict));
+ mask[i].image.type = type1;
+ mask[i].image.BitsPerComponent = pixm->MaskDict.BitsPerComponent;
+ }
+