[ft-devel] Freetype limits or integer overflows

2012-11-16 Thread Alexei Podtelezhnikov
Werner et al., What is the Freetype policy and/or goals with regard to integer overflows? How practical are the large sizes that push outline dimensions beyond 16 bits, or pixel size of 1024? In a few places I see 64-bit arithmetic utilized to control the overflow by means of FT_Int64. This

Re: [ft-devel] Freetype limits or integer overflows

2012-11-16 Thread Werner LEMBERG
What is the Freetype policy and/or goals with regard to integer overflows? Overflows should be avoided. If you need an exact bit width, use FT_Int{16,32}. 64bit variables are nowhere used except in code guarded with FT_LONG64 (however, the code should be written so that it works with FT_Int