I'm not sure what exactly points of discussion are, but in HarfBuzz we do
purposefully ignore position overflows. We use a macro like this for that:
#define HB_NO_SANITIZE_SIGNED_INTEGER_OVERFLOW
__attribute__((no_sanitize("signed-integer-overflow")))
If you want to copy the macro, please copy
>> Whether with -wrapv or with the unsigned macros, we simply disable
>> some compiler optimizations, perhaps some good optimizations too.
>
> Most certainly, yes. But there are a lot more things that slow down the
> potential performance of FreeType -- C in itself is a trade-off between
>
> Is this only useful for WOFF2? Or, can it be productively utilized by
> TTC in general?
Sorry I missed this mail. Right now this is only useful for WOFF2. In
the future, if we have another sfnt-wrapper format that supports TTCs,
this can be generalized.
--
Nikhil
> Whether with -wrapv or with the unsigned macros, we simply disable some
> compiler optimizations, perhaps some good optimizations too.
Most certainly, yes. But there are a lot more things that slow down the
potential performance of FreeType -- C in itself is a trade-off between