src/hb-blob.cc


Log

Author Commit Date CI Message
Behdad Esfahbod a8949df4 2013-09-13T20:23:51 [introspection] Annotate Unicode / font callbacks Should move these out of the public header... We're "clean" of introspection warnings now. Remaining ones are about graphite2 / freetype types not being introspectable.
Behdad Esfahbod dfdbe7f9 2013-09-12T20:52:20 [introspection] Make hb_blob_create() introspectable
Behdad Esfahbod 085d4291 2013-09-12T17:14:33 [introspection] Disable constructors for now Since our types are not associated with their methods, marking constructors makes them inaccessible from bindings. Undo for now.
Behdad Esfahbod 288f2899 2013-09-06T15:40:22 [docs/introspection] More annotations
Behdad Esfahbod 5f512017 2013-09-04T18:28:39 [docs] Document a few symbols
Behdad Esfahbod c3ba49b6 2013-02-25T17:06:35 Always create sub-blobs in MEMORY_MODE_READONLY This fixes a design bug with sanitize and sub-blobs that can cause crashes. Jonathan and I found and debugged this issue when we tested a corrupt font with the md5sum / filename: ea395483d37af0cb933f40689ff7b60a. Two hours of intense debugging we found out that the font has overlapping GSUB/GPOS tables, and as such, sanitizing the second table can modify the first one, which can cause all kinds of undefined behavior. The correct way to fix this is to make sure sub-blobs are always created readonly, since we consider the parent blob to be a shared resource and can't modify it, even if it *is* writable. This essentially makes the READONLY_MAY_MAKE_WRITABLE mode unused... Maybe we should simply remove / deprecate it.
Behdad Esfahbod 52c8d122 2013-01-14T13:51:46 Minor
Behdad Esfahbod f88d3bd7 2013-01-14T00:33:58 Fix build with Sun compiler
Behdad Esfahbod 1bc1cb36 2012-06-16T15:21:55 Make source more digestable for gobject-introspection
Behdad Esfahbod 6220e5fc 2012-06-06T03:30:09 Add ASSERT_POD for most objects
Behdad Esfahbod 0594a244 2012-06-05T20:35:40 Cleanup TRUE/FALSE vs true/false
Behdad Esfahbod f06ab8a4 2012-06-05T12:31:51 Better hide nil objects and make them const
Behdad Esfahbod bc71ad49 2012-03-01T17:30:29 Fix atomic-int op on Apple The OSAtomicAdd32Barrier operator returns the new value, we want the old value.
Behdad Esfahbod b95324cd 2011-09-21T16:50:39 Minor
Behdad Esfahbod 33ccc779 2011-08-09T00:43:24 [API] Make set_user_data() functions take a replace parameter We need this to set data on objects safely without worrying that some other thread unsets it by setting it at the same time.
Behdad Esfahbod c605bbbb 2011-08-04T20:00:53 Remove C++ guards from source files Where causing issues for people with MSVC.
Behdad Esfahbod cc06c243 2011-07-25T20:25:44 Streamline debugging infrastructure even more
Behdad Esfahbod 43ff203d 2011-07-25T17:35:24 Use variadic macros for debugging Looks *so* much nicer!
Behdad Esfahbod decd4e3e 2011-07-25T16:47:02 Add sugar syntax for debug messages Buffer debugging coming soon.
Behdad Esfahbod b9452bfc 2011-06-14T14:47:07 Fix compiler warnings with -pedantic
Behdad Esfahbod 4101ca7d 2011-05-11T14:30:56 Plug more leaks All good now.
Behdad Esfahbod 1c9f8717 2011-05-06T22:28:26 [API] Simplify blob API, remove lock
Behdad Esfahbod a0f337a1 2011-05-06T19:20:52 Remove unused hb_blob_try_writable_inplace()
Behdad Esfahbod b81bd429 2011-05-05T00:21:16 Make hb_mutex_*() macros take a pointer More intuitive.
Behdad Esfahbod 56eb5ad6 2011-05-04T19:27:37 Move code around Mutex (and Windows.h by extension) are fairly isolated now.
Behdad Esfahbod d4141a44 2011-05-03T00:19:18 [blob] Implement sub_blob() in terms of create() Fixes problem with uninitialized sub_blob->mutex among other things. Reported by Bradley Grainger.
Behdad Esfahbod f55272ec 2011-05-02T20:57:28 Add hb_mutex_free() and use it Based on patch by Bradley Grainger.
Behdad Esfahbod 4911062d 2011-05-02T19:36:39 [API] Rename hb_blob_create_empty() to hb_blob_get_empty()
Behdad Esfahbod 5fa849b7 2011-04-27T21:46:01 [API] Add _set/get_user_data() for all objects
Behdad Esfahbod 47e71d96 2011-04-27T16:38:03 [object] Remove unnecessary use of macros
Behdad Esfahbod 8be1420f 2011-04-27T16:14:04 [blob] Use HB_FUNC instead of __FUNCTION__
Behdad Esfahbod fca368c4 2011-04-21T18:24:02 Add hb_object_header_t which is the common part of all objects Makes way for adding arbitrary user_data support.
Behdad Esfahbod 2409d5f8 2011-04-21T17:14:28 Update Copyright headers
Behdad Esfahbod c57d454a 2011-04-20T18:50:27 Rename all private sources and headers to C++ files So we can liberally use the simple features of C++ that parts of the codebase is already using.
Behdad Esfahbod f19f4f9b 2011-04-20T18:25:56 Rename hb-blob.c to hb-blob.cc in preparation of more changes