On Thu, 24 Jan 2013 15:58:14 -0500, Xi Wang said:

>Many compilers such as gcc and clang optimize away pointer overflow
>checks `p + n < p', because pointer overflow is undefined behavior.

And clang can detect signed overflow at runtime if you enable the debug flag 
"-fsanitize=undefined" described here:

<http://clang.llvm.org/docs/UsersManual.html#controlling-code-generation>

Could be useful to build freetype with that flag and see what it finds...

Cheers,

-- 
____________________________________________________________
Sean McBride, B. Eng                 [email protected]
Rogue Research                        www.rogue-research.com 
Mac Software Developer              Montréal, Québec, Canada



_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel

Reply via email to