Commit 5c9d9bf295df404e6d89d6495f0a181d85f1cd57

Werner Lemberg 2015-02-25T08:13:40

* src/bzip2/ftbzip2.c (ft_bzip2_alloc): Signedness fix.

diff --git a/ChangeLog b/ChangeLog
index e60c314..120cf9a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2015-02-25  Werner Lemberg  <wl@gnu.org>
 
+	* src/bzip2/ftbzip2.c (ft_bzip2_alloc): Signedness fix.
+
+2015-02-25  Werner Lemberg  <wl@gnu.org>
+
 	[lzw] Signedness fixes.
 
 	* src/lzw/ftzopen.c, src/lzw/ftzopen.h: Apply.
diff --git a/src/bzip2/ftbzip2.c b/src/bzip2/ftbzip2.c
index a0de1c4..1c29dc0 100644
--- a/src/bzip2/ftbzip2.c
+++ b/src/bzip2/ftbzip2.c
@@ -71,7 +71,7 @@
                   int        items,
                   int        size )
   {
-    FT_ULong    sz = (FT_ULong)size * items;
+    FT_ULong    sz = (FT_ULong)size * (FT_ULong)items;
     FT_Error    error;
     FT_Pointer  p  = NULL;