Remove pointless overflow check in pointer math

Fixes https://github.com/behdad/harfbuzz/issues/227
This commit is contained in:
Behdad Esfahbod 2016-02-18 19:31:51 +07:00
parent aae2847099
commit 568a0c60e8
1 changed files with 0 additions and 1 deletions

View File

@ -104,7 +104,6 @@ hb_blob_create (const char *data,
if (!length || if (!length ||
length >= 1u << 31 || length >= 1u << 31 ||
data + length < data /* overflows */ ||
!(blob = hb_object_create<hb_blob_t> ())) { !(blob = hb_object_create<hb_blob_t> ())) {
if (destroy) if (destroy)
destroy (user_data); destroy (user_data);