History log of /external/harfbuzz_ng/src/hb-blob.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c3ba49b6fa1865e8318926eaa6c0f2063d1053bb 25-Feb-2013 Behdad Esfahbod <behdad@behdad.org> 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.
/external/harfbuzz_ng/src/hb-blob.h
1bc1cb3603167f5da309336f7018c8b0608ac104 16-Jun-2012 Behdad Esfahbod <behdad@behdad.org> Make source more digestable for gobject-introspection
/external/harfbuzz_ng/src/hb-blob.h
5e88aa66822ba64324b4428c9ffbe06a43b4f310 15-Apr-2012 Behdad Esfahbod <behdad@behdad.org> Remove public enum names again

As was reported to me, glib-mkenum does not understand named enums,
so remove for now.
/external/harfbuzz_ng/src/hb-blob.h
c6035cf802c60f0526f421f39a55886061df94ee 12-Apr-2012 Behdad Esfahbod <behdad@behdad.org> Add names to enums

gdb was showing <anonymous enum> instead of useful stuff, so name
all our enums.
/external/harfbuzz_ng/src/hb-blob.h
d1c9eb458c843215da8df84b596bfae51fee135b 12-Apr-2012 Behdad Esfahbod <behdad@behdad.org> Make it an error to include non-top-level headers

Users should #include <hb.h> (or hb-ft.h, hb-glib.h, etc), but
never things like hb-shape.h directly. This makes it easier to
refactor headers later on without breaking compatibility.
/external/harfbuzz_ng/src/hb-blob.h
33ccc77902660ed4b49184e5ec99f4fd0ef63175 09-Aug-2011 Behdad Esfahbod <behdad@behdad.org> [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.
/external/harfbuzz_ng/src/hb-blob.h
1c9f8717eb12c37c219333cbb0d123e1d2da4896 07-May-2011 Behdad Esfahbod <behdad@behdad.org> [API] Simplify blob API, remove lock
/external/harfbuzz_ng/src/hb-blob.h
a0f337a1cce1788dbf3147b459e7f615acbfe81b 07-May-2011 Behdad Esfahbod <behdad@behdad.org> Remove unused hb_blob_try_writable_inplace()
/external/harfbuzz_ng/src/hb-blob.h
4911062d5be0d937ee8f1a70cc93e05d162f45b3 03-May-2011 Behdad Esfahbod <behdad@behdad.org> [API] Rename hb_blob_create_empty() to hb_blob_get_empty()
/external/harfbuzz_ng/src/hb-blob.h
5fa849b77d49da2212825ebb1bea9145713b8449 28-Apr-2011 Behdad Esfahbod <behdad@behdad.org> [API] Add _set/get_user_data() for all objects
/external/harfbuzz_ng/src/hb-blob.h
2409d5f8d7dd8b535ce5ea29e933f7db27d33793 21-Apr-2011 Behdad Esfahbod <behdad@behdad.org> Update Copyright headers
/external/harfbuzz_ng/src/hb-blob.h
af02933739e03a156b9f7761fd7a63e2a02d0df1 20-Apr-2011 Behdad Esfahbod <behdad@behdad.org> [API] Remove hb_*_get_reference_count()

This was a bizzare piece of API that I inherited from cairo. It has
been wrong adding them to cairo in the first place. Remove them before
someone uses them!
/external/harfbuzz_ng/src/hb-blob.h
e5847f75fb7bd25c5db6061d8e20d61fa469f9fe 20-Apr-2011 Behdad Esfahbod <behdad@behdad.org> [API] blob: move user_data before destroy()

This is the common convention for language binding tools.
/external/harfbuzz_ng/src/hb-blob.h
acdba3f90b232fc12fcb200dca2584481b339118 23-Jul-2010 Behdad Esfahbod <behdad@behdad.org> Prefer C linkage
/external/harfbuzz_ng/src/hb-blob.h
c755cb3e3ac55156d0d2ec05adea7a650b97cc41 22-Apr-2010 Behdad Esfahbod <behdad@behdad.org> Change header comment
/external/harfbuzz_ng/src/hb-blob.h
388ad037ff399c23c5e24bbcede27e0e35bed07e 19-Aug-2009 Behdad Esfahbod <behdad@behdad.org> [HB] Remove HB_MEMORY_MODE_READONLY_NEVER_DUPLICATE

Unlike the rest of the memory-mode enum, this one didn't only
describe the access mode of the input memory region. Remove it.

If someone wants to inhibit duplicating, they can lock the blob
and throw away the key.

Based on mailing list discussion with Carl Worth.
/external/harfbuzz_ng/src/hb-blob.h
977eeb714454630bd045bb11f58ff6397f10b143 19-Aug-2009 Behdad Esfahbod <behdad@behdad.org> [HB] s/writeable/writable/g
/external/harfbuzz_ng/src/hb-blob.h
864e2560b627f1e73be3b0635e02f00844cb67c3 18-Aug-2009 Behdad Esfahbod <behdad@behdad.org> [HB] Fix pedantic warnings
/external/harfbuzz_ng/src/hb-blob.h
fc6c94002dd5478cf9fbdaff12d8374a786c85e1 04-Aug-2009 Behdad Esfahbod <behdad@behdad.org> [HB] Simplify sub-blob support
/external/harfbuzz_ng/src/hb-blob.h
a26442437ae9f11674e0d68cd5cbf395ade7695d 03-Aug-2009 Behdad Esfahbod <behdad@behdad.org> [HB] Add sub-blobs
/external/harfbuzz_ng/src/hb-blob.h
0cc7bc59ea6e8f38bf1e196c558cca9862ac3302 02-Aug-2009 Behdad Esfahbod <behdad@behdad.org> [HB] Move typedef's around
/external/harfbuzz_ng/src/hb-blob.h
a12dd324a3859496a95602d426aee34ce6c5c8a6 02-Aug-2009 Behdad Esfahbod <behdad@behdad.org> [HB] Add get_reference_count()
/external/harfbuzz_ng/src/hb-blob.h
0090dc0f67b553d2f6eaaedc289c0956ade09ef6 30-Jul-2009 Behdad Esfahbod <behdad@behdad.org> [HB] Remove hinting setting and use ppem==0 to mean "no hinting"
/external/harfbuzz_ng/src/hb-blob.h
f0954d1e08ae288eda9904e17108fc73f48c0b98 30-Jul-2009 Behdad Esfahbod <behdad@behdad.org> [HB] Add a "blob" manager
/external/harfbuzz_ng/src/hb-blob.h