[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Thu Feb 18 12:32:14 UTC 2016


 src/hb-blob.cc |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit 568a0c60e8695a6ad8a93ec60d55b137c48890cb
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Thu Feb 18 19:31:51 2016 +0700

    Remove pointless overflow check in pointer math
    
    Fixes https://github.com/behdad/harfbuzz/issues/227

diff --git a/src/hb-blob.cc b/src/hb-blob.cc
index a6870dc..fb48f03 100644
--- a/src/hb-blob.cc
+++ b/src/hb-blob.cc
@@ -104,7 +104,6 @@ hb_blob_create (const char        *data,
 
   if (!length ||
       length >= 1u << 31 ||
-      data + length < data /* overflows */ ||
       !(blob = hb_object_create<hb_blob_t> ())) {
     if (destroy)
       destroy (user_data);


More information about the HarfBuzz mailing list