[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] [PATCH RFC] src/sfnt/ttsbit0.c: fix broken pointer overfl

From: Sean McBride
Subject: Re: [ft-devel] [PATCH RFC] src/sfnt/ttsbit0.c: fix broken pointer overflow checks
Date: Fri, 25 Jan 2013 11:48:02 -0500

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:


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


Sean McBride, B. Eng                 address@hidden
Rogue Research              
Mac Software Developer              Montréal, Québec, Canada

reply via email to

[Prev in Thread] Current Thread [Next in Thread]