src/hb-open-type-private.hh


Log

Author Commit Date CI Message
Behdad Esfahbod 187454c5 2010-04-23T16:35:01 Add different casts from pointer and ref to avoid bugs
Behdad Esfahbod efb324a4 2010-04-23T16:22:54 Remove GET_FOR_DATA macros The major-version check is now handled by sanitize. If major doesn't match, we reject and fall back to the Null object.
Behdad Esfahbod f1aaa2a4 2010-04-23T15:19:50 Add TODO
Behdad Esfahbod 1d720192 2010-04-23T14:39:10 Fix compile warnings (HB_GNUC_UNUSED)
Behdad Esfahbod 8dfdca59 2010-04-23T14:07:34 No need to keep blob in sanitize context
Behdad Esfahbod 254933c3 2010-04-23T13:57:10 When sanitizing, delay making writable Before, as soon as we needed to make an edit, we tried to make the blob writable inplace. That grows code unnecessarily though. We can simply fail, make writable, then start again. That's indeed what the fallback was doing anyway.
Behdad Esfahbod d632ec40 2010-04-22T18:33:12 Cosmetic
Behdad Esfahbod a3263aa7 2010-04-22T18:29:09 Convert the last set of cast macros to templates
Behdad Esfahbod c38188a1 2010-04-22T16:52:09 Remove unused macro
Behdad Esfahbod dc228048 2010-04-22T13:22:41 Remove integrity check in Tag sanitize Serves no useful purpose.
Behdad Esfahbod c293581e 2010-04-22T11:15:46 Add coment
Behdad Esfahbod 1faa76c6 2010-04-22T10:54:26 Remove unnecessary casts
Behdad Esfahbod 565c80bd 2010-04-22T10:26:35 Make sure semicolon is expected after DEFINE_NULL_DATA()
Behdad Esfahbod e5546a43 2010-04-22T00:45:42 Watch for overflow in Array sanitize
Behdad Esfahbod 4f5f1c34 2010-04-22T00:27:39 Rename const_sub_array to sub_array since all consts are implicit now
Behdad Esfahbod c755cb3e 2010-04-22T00:11:43 Change header comment
Behdad Esfahbod 243d20e0 2010-04-21T23:57:01 More cast simplification
Behdad Esfahbod 0dfcc13a 2010-04-21T23:41:26 Rename ConstCharP to CharP (overloaded now)
Behdad Esfahbod 62c0fd75 2010-04-21T23:30:48 Cleanup de-const-casting during sanitize
Behdad Esfahbod dd155870 2010-04-21T23:13:33 Add more comments
Behdad Esfahbod c85c3620 2010-04-21T23:12:54 Add comment
Behdad Esfahbod 2467c669 2010-04-21T23:11:45 Add comment
Behdad Esfahbod 29c3f5e1 2010-04-21T23:01:00 Improve comment
Behdad Esfahbod 01c01618 2010-04-21T22:49:56 Further simplify IntType struct defs
Behdad Esfahbod 2cb08458 2010-04-21T22:37:31 Rename const_array() to array() (overloaded)
Behdad Esfahbod 2e2f43ed 2010-04-21T22:30:36 Remove ArrayAfter, use StructAfter in place
Behdad Esfahbod e961c86c 2010-04-21T15:56:11 Convert NEXT() and ARRAY_AFTER() macros to templates
Behdad Esfahbod 198facdc 2010-04-21T13:35:36 Use templates for const char * casts
Behdad Esfahbod e032ed9f 2010-04-21T03:11:46 Use templates for defining int typess
Behdad Esfahbod 2c9fd2ad 2010-04-21T02:15:39 Remove unused macro
Behdad Esfahbod 7a52f281 2010-04-21T02:14:44 Rename macros
Behdad Esfahbod 40d73bc6 2010-04-21T00:49:40 Improve comments
Behdad Esfahbod 394bad41 2010-04-21T00:40:50 Remove stale TODO item
Behdad Esfahbod 9d367789 2010-04-21T00:32:47 Use a function template instead of struct template for Null
Behdad Esfahbod ffd321af 2010-04-21T00:14:12 Simplify Tag struct
Behdad Esfahbod 00e23fcc 2010-04-20T23:50:45 Cosmetic
Behdad Esfahbod f9b37727 2010-04-20T15:51:53 Add couple consts to operators
Behdad Esfahbod 53d237ec 2010-04-20T15:25:27 Remove ASSERT_SIZE_DATA
Behdad Esfahbod 0e206de9 2010-04-19T02:29:04 Fix warnings
Behdad Esfahbod d5943407 2010-04-19T02:27:56 Fix debug build
Behdad Esfahbod 4b8487d8 2010-03-16T03:46:17 Fix the mystery bug! A couple bugs joined forces to exhibit the mystery behavior of crashes / infinite loops on OS X / wrong kerning / invalid memory access. Pooh! The bugs were involved: - Wrong pointer math with ValueRecord in PairPosFormat1 - Fallout from avoiding flex arrays, code not correctly updated to remove sizeof() usage. We strictly never use sizeof() directly now. And the PairPos code is cleaned up. Should fix them all. Bugs are: Bug 605655 - Pango 1.26.2 introduces kerning bug Bug 611229 - Pango reads from uninitialized memory Bug 593240 - (pangoosx) Crash / infinite loop with Mac OS X We were also doing wrong math converting Device adjustments to hb_position_t. Fallout from FreeType days. Should shift 16, not 6. Fixed that too. There's still another bug: we don't sanitize Device records referenced from value records. Fixing that also.
Behdad Esfahbod 9b39755d 2010-04-15T14:00:25 Typo
Behdad Esfahbod f85ec1c7 2010-03-10T04:14:40 Cosmetic
Behdad Esfahbod ecd2e996 2010-02-23T02:42:00 Improve the alignment for NullPool
Behdad Esfahbod 807b8aa4 2009-11-19T20:28:03 Another C++ strictness fix Pango Bug 602408 - Invalid C++ code breaks compile with Sun C++ Compiler (Error: A union member cannot have a user-defined assignment operator) According to the bug: C++ Programming Language by Bjarne Stroustrup: Chapter 10.4.12 forbids explicitly using of union members with constructors, destructors or assignment operations. So we use a set() method instead of the assignment operator. Ugly, but hey, that's life.
Behdad Esfahbod d0351314 2009-11-05T16:16:06 Include stdio.h if debugging
Behdad Esfahbod 1e914345 2009-11-04T18:12:09 Minor
Behdad Esfahbod 48de3730 2009-11-04T16:59:50 Fix previous commit, ouch!
Behdad Esfahbod d3480ba3 2009-11-03T10:47:29 Don't use zero-sized arrays It's not part of the standard and MSVC doesn't like it. It makes the code a lot less elegant than it used to be, but I think it should work now.
Behdad Esfahbod 3e2401f6 2009-08-28T17:17:11 [HB] Rename DEBUG to TRACE where appropriate
Behdad Esfahbod 95e20240 2009-08-28T16:31:20 [HB] Allow enabling different debug facilities individually
Behdad Esfahbod 8b534613 2009-08-19T18:16:50 [HB] Fix more casts
Behdad Esfahbod 977eeb71 2009-08-19T16:17:24 [HB] s/writeable/writable/g
Behdad Esfahbod cd33cb9e 2009-08-14T18:42:42 [HB] More minor shuffling
Behdad Esfahbod 80e2aa2e 2009-08-14T18:40:56 [HB] Move code around
Behdad Esfahbod 3564ee52 2009-08-14T18:32:56 [HB] Correctly sanitize LigatureAttach
Behdad Esfahbod 815a73e4 2009-08-14T17:31:16 [HB] Fix possible int overflows during sanitize
Behdad Esfahbod ae728e51 2009-08-14T16:41:00 [HB] Debug output for SANITIZE_MEM()
Behdad Esfahbod 41895506 2009-08-14T16:25:33 [HB] Use inline function for SANITIZE_MEM()
Behdad Esfahbod 95528131 2009-08-14T16:17:32 [HB] Use SANITIZE_THIS() when applicable
Behdad Esfahbod 5ccf1ba3 2009-08-12T15:55:23 [HB] Fixed signedness warnings
Behdad Esfahbod 20b035da 2009-08-10T19:00:36 [HB] Put C++ inline's back Apparetly in C++, inline means a totally different thing.
Behdad Esfahbod 284899cc 2009-08-09T22:10:39 [HB] Add a NEXT() macro
Behdad Esfahbod 7f96b39a 2009-08-08T16:37:22 [HB] Fix bug introduced recently
Behdad Esfahbod bff3c0fd 2009-08-07T19:46:30 [HB] Remove clumsy macros and improve API
Behdad Esfahbod d0b65737 2009-08-06T18:34:47 [HB] Fix various XXX issues
Behdad Esfahbod 9e826ea2 2009-08-06T18:24:55 [HB] Fix unaligned access
Behdad Esfahbod 71a8344a 2009-08-06T14:28:18 [HB] Remove a few 'inline's, though the compiler mostly ignores them
Behdad Esfahbod 9b76a290 2009-08-06T10:27:38 [HB] Improve debug output
Behdad Esfahbod 0d77ab8a 2009-08-05T15:27:42 [HB] Improve debug output
Behdad Esfahbod 7acb3895 2009-08-05T15:20:34 [HB] Improve debug output and fix mprotect bug
Behdad Esfahbod 4f3ad911 2009-08-04T23:01:23 [HB] More debugging output
Behdad Esfahbod 8cd6fa28 2009-08-04T22:55:44 [HB] Fix fatal Sanitizer bug
Behdad Esfahbod b28815c1 2009-08-04T22:35:36 [HB] Add sanitize debugging facilities
Behdad Esfahbod 7edb430f 2009-08-04T22:06:57 [HB] Rename open-types to open-type; beauty