freetype/src/sfnt
Xi Wang ba931be2af [sfnt] Fix broken pointer overflow checks.
Many compilers such as gcc and clang optimize away pointer overflow
checks `p + n < p', because pointer overflow is undefined behavior.
Use a safe form `n > p_limit - p' instead.

Also avoid possible integer overflow issues, for example, using
`num_glyphs > ( p_limit - p ) / 2' rather than `num_glyphs * 2'
given a large `num_glyphs'.

* src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): Implement it.
2013-01-25 00:57:09 +01:00
..
Jamfile Position Independent Code (PIC) support in sfnt driver. 2009-04-05 18:08:32 +03:00
module.mk FT_USE_MODULE declares things as: 2008-12-21 10:29:30 +00:00
rules.mk */rules.mk: Handle `*pic.c' files. 2011-01-03 07:11:54 +01:00
sfdriver.c [sfnt, truetype] More renamings for orthogonality. 2012-08-27 07:43:28 +02:00
sfdriver.h Position Independent Code (PIC) support in sfnt driver. 2009-04-05 18:08:32 +03:00
sferrors.h Prepare source code for amalgamation. 2012-03-08 06:04:03 +01:00
sfnt.c Position Independent Code (PIC) support in sfnt driver. 2009-04-05 18:08:32 +03:00
sfntpic.c [FT_CONFIG_OPTION_PIC] Fix g++ 4.6.2 compiler warnings. 2012-08-27 11:23:41 +02:00
sfntpic.h [sfnt, truetype] More renamings for orthogonality. 2012-08-27 07:43:28 +02:00
sfobjs.c [sfnt] Formatting. 2012-08-27 05:48:23 +02:00
sfobjs.h * massive re-formatting changes to many, many source files. I don't 2002-08-27 20:20:29 +00:00
ttbdf.c */*: Use module specific error names where appropriate. 2010-06-24 10:34:29 +02:00
ttbdf.h Convert to Unix line endings. 2006-03-01 11:31:08 +00:00
ttcmap.c [FT_CONFIG_OPTION_PIC] Fix g++ 4.6.2 compiler warnings. 2012-08-27 11:23:41 +02:00
ttcmap.h [sfnt] Formatting. 2012-08-27 05:48:23 +02:00
ttcmapc.h [sfnt] Formatting. 2012-08-27 05:48:23 +02:00
ttkern.c Minor optimizations by avoiding divisions. 2010-06-30 10:26:48 +02:00
ttkern.h formatting, minor doc fixes, copyright years 2007-01-05 09:03:31 +00:00
ttload.c [sfnt] Fix Savannah bug #37936. 2012-12-16 19:08:36 +01:00
ttload.h * include/freetype/ftoutln.h (FT_Outline_Embolden): Mention in 2006-02-15 06:05:52 +00:00
ttmtx.c [sfnt] Make arrays static like all others. 2012-03-14 18:34:36 +01:00
ttmtx.h Clean up the SFNT_Interface. In this final pass, `load_hmtx' is 2006-02-14 07:25:57 +00:00
ttpost.c Fix Savannah bug #31275. 2010-10-08 18:40:18 +02:00
ttpost.h * massive re-formatting changes to many, many source files. I don't 2002-08-27 20:20:29 +00:00
ttsbit.c Fix g++4.6 compiler warnings in module drivers. 2011-06-15 02:48:33 +09:00
ttsbit.h Formatting. 2008-11-29 09:31:44 +00:00
ttsbit0.c [sfnt] Fix broken pointer overflow checks. 2013-01-25 00:57:09 +01:00