[Python-modules-commits] r11752 - in packages/pyfribidi/trunk/debian (4 files)

aelmahmoudy-guest at users.alioth.debian.org aelmahmoudy-guest at users.alioth.debian.org
Tue Feb 16 19:32:50 UTC 2010


    Date: Tuesday, February 16, 2010 @ 19:32:48
  Author: aelmahmoudy-guest
Revision: 11752

* Added patch buffer_overflow.diff to create an output buffer that assumes
  4-byte sequences for all Unicode characters (Closes: #570068)

Added:
  packages/pyfribidi/trunk/debian/patches/
  packages/pyfribidi/trunk/debian/patches/buffer_overflow.diff
  packages/pyfribidi/trunk/debian/patches/series
Modified:
  packages/pyfribidi/trunk/debian/changelog

Modified: packages/pyfribidi/trunk/debian/changelog
===================================================================
--- packages/pyfribidi/trunk/debian/changelog	2010-02-16 18:53:05 UTC (rev 11751)
+++ packages/pyfribidi/trunk/debian/changelog	2010-02-16 19:32:48 UTC (rev 11752)
@@ -3,6 +3,8 @@
   * Added python-pyfribidi-dbg package.
   * debian/rules: pass --buildsystem= instead of -S to dh, as a workaround for
     bug #570039.
+  * Added patch buffer_overflow.diff to create an output buffer that assumes
+    4-byte sequences for all Unicode characters (Closes: #570068)
 
  -- أحمد المحمودي (Ahmed El-Mahmoudy) <aelmahmoudy at users.sourceforge.net>  Tue, 16 Feb 2010 20:43:00 +0200
 

Added: packages/pyfribidi/trunk/debian/patches/buffer_overflow.diff
===================================================================
--- packages/pyfribidi/trunk/debian/patches/buffer_overflow.diff	                        (rev 0)
+++ packages/pyfribidi/trunk/debian/patches/buffer_overflow.diff	2010-02-16 19:32:48 UTC (rev 11752)
@@ -0,0 +1,14 @@
+Descripton: Create an output buffer that assumes 4-byte sequences for all
+ Unicode characters (Closes: #570068)
+Origin: http://sourceforge.net/tracker/?func=detail&aid=2676136&group_id=158366&atid=807545
+--- a/pyfribidi.c
++++ b/pyfribidi.c
+@@ -230,7 +230,7 @@
+ 
+ 	/* Allocate fribidi UTF-8 buffer */
+ 
+-	visual_utf8 = PyMem_New(char, MAX_STR_LEN);
++	visual_utf8 = PyMem_New(char, unicode_length * 4);
+ 	if (visual_utf8 == NULL)
+ 	{
+ 		PyErr_SetString (PyExc_MemoryError,

Added: packages/pyfribidi/trunk/debian/patches/series
===================================================================
--- packages/pyfribidi/trunk/debian/patches/series	                        (rev 0)
+++ packages/pyfribidi/trunk/debian/patches/series	2010-02-16 19:32:48 UTC (rev 11752)
@@ -0,0 +1 @@
+buffer_overflow.diff




More information about the Python-modules-commits mailing list