[HarfBuzz] harfbuzz: Branch 'master'
Behdad Esfahbod
behdad at kemper.freedesktop.org
Mon Oct 15 05:23:47 UTC 2018
src/hb-blob.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 6e07076fd094afc8c9c8ad8f08453e7882294592
Author: Behdad Esfahbod <behdad at behdad.org>
Date: Sun Oct 14 22:22:45 2018 -0700
[blob] Fix UBSan error
diff --git a/src/hb-blob.cc b/src/hb-blob.cc
index c1ed0f2a..edee6730 100644
--- a/src/hb-blob.cc
+++ b/src/hb-blob.cc
@@ -507,8 +507,9 @@ struct hb_mapped_file_t
#if (defined(HAVE_MMAP) || defined(_WIN32) || defined(__CYGWIN__)) && !defined(HB_NO_MMAP)
static void
-_hb_mapped_file_destroy (hb_mapped_file_t *file)
+_hb_mapped_file_destroy (void *file_)
{
+ hb_mapped_file_t *file = (hb_mapped_file_t *) file_;
#ifdef HAVE_MMAP
munmap (file->contents, file->length);
#elif defined(_WIN32) || defined(__CYGWIN__)
More information about the HarfBuzz
mailing list