From 568a0c60e8695a6ad8a93ec60d55b137c48890cb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 18 Feb 2016 19:31:51 +0700 Subject: [PATCH] Remove pointless overflow check in pointer math Fixes https://github.com/behdad/harfbuzz/issues/227 --- src/hb-blob.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/hb-blob.cc b/src/hb-blob.cc index a6870dc06..fb48f03ca 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 ())) { if (destroy) destroy (user_data);