[Debian-hebrew-package] [svn] r305 - in pkg/bidiv/trunk: . debian

Lior Kaplan kaplan-guest at costa.debian.org
Sat Jan 7 15:46:25 UTC 2006


Author: kaplan-guest
Date: Sat Jan  7 15:46:24 2006
New Revision: 305

Modified:
   pkg/bidiv/trunk/bidiv.1
   pkg/bidiv/trunk/bidiv.c
   pkg/bidiv/trunk/debian/changelog
   pkg/bidiv/trunk/debian/control
Log:


Modified: pkg/bidiv/trunk/bidiv.1
==============================================================================
--- pkg/bidiv/trunk/bidiv.1	(original)
+++ pkg/bidiv/trunk/bidiv.1	Sat Jan  7 15:46:24 2006
@@ -114,7 +114,7 @@
 .B \-w
 option). The
 .B \-j option tells
-\B bidiv
+.B bidiv
 not to preform this justifications, and leave short lines unpadded.
 .TP
 .BI \-w\  width

Modified: pkg/bidiv/trunk/bidiv.c
==============================================================================
--- pkg/bidiv/trunk/bidiv.c	(original)
+++ pkg/bidiv/trunk/bidiv.c	Sat Jan  7 15:46:24 2006
@@ -67,8 +67,8 @@
 	in=(char *)malloc(width+1);
 	out=(char *)malloc(width*7+1); /* 7 is the maximum number of
 					  bytes in one UTF8 char? */
-	unicode_in=(FriBidiChar *)malloc(sizeof(FriBidiChar)*width);
-	unicode_out=(FriBidiChar *)malloc(sizeof(FriBidiChar)*width);
+	unicode_in=(FriBidiChar *)malloc(sizeof(FriBidiChar)*(width+1));
+	unicode_out=(FriBidiChar *)malloc(sizeof(FriBidiChar)*(width+1));
 
 	c=0;
 	while(c!=EOF){
@@ -212,6 +212,11 @@
 				putchar(' ');
 		puts(out);
 	}
+	// Free the memory we have allocated
+	free(in);
+	free(out);
+	free(unicode_in);
+	free(unicode_out);
 }
 
 int

Modified: pkg/bidiv/trunk/debian/changelog
==============================================================================
--- pkg/bidiv/trunk/debian/changelog	(original)
+++ pkg/bidiv/trunk/debian/changelog	Sat Jan  7 15:46:24 2006
@@ -1,3 +1,11 @@
+bidiv (1.4-6) unstable; urgency=medium
+
+  * Apply patch from Shachar Raindel <shacharr at gmail.com> regarding
+    insufficient memory allocation when handling Unicode strings.
+  * Fix man page error reported by Lintian.
+
+ -- Lior Kaplan <webmaster at guides.co.il>  Sat,  7 Jan 2006 13:09:43 +0200
+
 bidiv (1.4-5) unstable; urgency=low
 
   * Change maintainership to Debian-Hebrew group.

Modified: pkg/bidiv/trunk/debian/control
==============================================================================
--- pkg/bidiv/trunk/debian/control	(original)
+++ pkg/bidiv/trunk/debian/control	Sat Jan  7 15:46:24 2006
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Hebrew Packaging Team <debian-hebrew-package at lists.alioth.debian.org>
 Uploaders: Baruch Even <baruch at debian.org>, Lior Kaplan <webmaster at guides.co.il>
-Build-Depends: debhelper (>> 4.1.0), cdbs, libfribidi-dev (>= 0.10.4-5)
+Build-Depends: debhelper (>> 4.1.0), cdbs, libfribidi-dev
 Standards-Version: 3.6.2
 
 Package: bidiv



More information about the Debian-hebrew-package mailing list