SOURCES: python-sparc_fix.patch (NEW) - fix memory alignment bug

atler atler at pld-linux.org
Mon May 15 15:25:12 CEST 2006


Author: atler                        Date: Mon May 15 13:25:12 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fix memory alignment bug

---- Files affected:
SOURCES:
   python-sparc_fix.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/python-sparc_fix.patch
diff -u /dev/null SOURCES/python-sparc_fix.patch:1.1
--- /dev/null	Mon May 15 15:25:12 2006
+++ SOURCES/python-sparc_fix.patch	Mon May 15 15:25:07 2006
@@ -0,0 +1,11 @@
+--- Python-2.4.3/Objects/unicodeobject.c.orig	2006-05-13 20:34:03.118998250 +0200
++++ Python-2.4.3/Objects/unicodeobject.c	2006-05-13 20:33:52.970364000 +0200
+@@ -2302,7 +2302,7 @@
+     end = s + size;
+ 
+     while (s < end) {
+-        *p = *(Py_UNICODE *)s;
++        memcpy(p,s,sizeof(Py_UNICODE));
+         /* We have to sanity check the raw data, otherwise doom looms for
+            some malformed UCS-4 data. */
+         if (
================================================================


More information about the pld-cvs-commit mailing list