freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Undefined behavior


From: Behdad Esfahbod
Subject: [ft-devel] Undefined behavior
Date: Fri, 08 Aug 2014 16:56:22 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0

This commit:

commit 177982e933ed6f2ab96163e14f4267f8abe89efd
Author: Alexei Podtelezhnikov <address@hidden>
Date:   Tue Jul 15 23:54:34 2014 -0400

    * src/base/ftcalc.c (FT_MSB): Utilize gcc builtins.

introduced undefined behavior, since __builtin_clz and __builtin_ctz have
undefined behavior if passed in value is zero.

This can actually happen with degenerate glyph outlines.  It might be
harmless, but it's something that should be fixed.

Thanks,
-- 
behdad
http://behdad.org/



reply via email to

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