From 5c9d9bf295df404e6d89d6495f0a181d85f1cd57 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 25 Feb 2015 08:13:40 +0100 Subject: [PATCH] * src/bzip2/ftbzip2.c (ft_bzip2_alloc): Signedness fix. --- ChangeLog | 4 ++++ src/bzip2/ftbzip2.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e60c3142f..120cf9afb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-02-25 Werner Lemberg + + * src/bzip2/ftbzip2.c (ft_bzip2_alloc): Signedness fix. + 2015-02-25 Werner Lemberg [lzw] Signedness fixes. diff --git a/src/bzip2/ftbzip2.c b/src/bzip2/ftbzip2.c index a0de1c4bc..1c29dc0e7 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;