Remove pointless overflow check in pointer math
Fixes https://github.com/behdad/harfbuzz/issues/227
This commit is contained in:
parent
aae2847099
commit
568a0c60e8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue