Behdad Esfahbod
74e313c016
[gsubgpos] Make debug code always available to the compiler
...
Such that we don't break debug build all the time.
15 years ago
Behdad Esfahbod
41011a6ed7
Fix compiler warning about value unused
15 years ago
Behdad Esfahbod
863df68e89
[object] Make debug code always available to the compiler
...
Such that we don't break debug build all the time.
15 years ago
Behdad Esfahbod
1d52151a19
Minor
15 years ago
Behdad Esfahbod
444fffb1ab
[blob] Make debug code always available to the compiler
...
Such that we don't break debug build all the time.
15 years ago
Behdad Esfahbod
ba51b25c7b
Fix build. Ouch!
15 years ago
Behdad Esfahbod
a92f0fda7f
Fix debug build
15 years ago
Behdad Esfahbod
c165f25410
[object] Actually handle malloc() failure
...
Caught by John Daggett.
15 years ago
Behdad Esfahbod
caff7db93d
Fix Device::get_size() calculation
15 years ago
Behdad Esfahbod
66d6eb30eb
Rename Var to Obj
15 years ago
Behdad Esfahbod
690b919461
Remove use of flexible arrays
...
Also remove wrong ASSERT_SIZE that would trigger only when not using
flexible arrays (which was the case on win32, but not with gcc).
15 years ago
Behdad Esfahbod
1cebfbb063
Cleanup hb_face_create_for_data()
15 years ago
Behdad Esfahbod
d6b3c83a90
Allow get_table() to return NULL
15 years ago
Behdad Esfahbod
ad3653751b
Typo
15 years ago
Behdad Esfahbod
990443e5f2
Remove lock_instance()
15 years ago
Behdad Esfahbod
187454c595
Add different casts from pointer and ref to avoid bugs
15 years ago
Behdad Esfahbod
efb324a46f
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.
15 years ago
Behdad Esfahbod
f1aaa2a436
Add TODO
15 years ago
Behdad Esfahbod
33d4d4325e
Zero glyph metrics before calling user callback
15 years ago
Behdad Esfahbod
4206e9511a
More warning fixes
15 years ago
Behdad Esfahbod
ef66ebeabc
Remove unused parameter
15 years ago
Behdad Esfahbod
1d720192b1
Fix compile warnings (HB_GNUC_UNUSED)
15 years ago
Behdad Esfahbod
8dfdca599c
No need to keep blob in sanitize context
15 years ago
Behdad Esfahbod
254933c397
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.
15 years ago
Behdad Esfahbod
71e735e915
[blob] Fallback to copying if mprotect() fails
15 years ago
Behdad Esfahbod
1aa4666b91
Cleanup OpenTypeFontFile
15 years ago
Behdad Esfahbod
ae4190cafe
Properly define separate structs for TTCHeader and TTCHeaderVersion1
15 years ago
Behdad Esfahbod
a065f471b3
Cleanup Extension lookups
...
Two things:
1. Allow nested Extension lookups. The offset is always positive, so
it can't loop circularly.
2. Move the check for all Extension subtables having the same lookup
type to the correct place. Before it wasn't really working.
15 years ago
Behdad Esfahbod
a0bb49c583
Add comment re bsearch effect on sanitize
15 years ago
Behdad Esfahbod
d632ec4000
Cosmetic
15 years ago
Behdad Esfahbod
a3263aa773
Convert the last set of cast macros to templates
15 years ago
Behdad Esfahbod
c38188a191
Remove unused macro
15 years ago
Behdad Esfahbod
3b2c2df41b
Cleanup Extension sanitize()
15 years ago
Behdad Esfahbod
1856184b93
Fail sanitize on major version mismatch
...
We handle major-version differences via get_for_data(), so sanitize
should never see a major version mismatch.
15 years ago
Behdad Esfahbod
df3f505dcf
More sanitize cleanup
15 years ago
Behdad Esfahbod
278a91f0cd
Minor cleanup of sanitize
...
Done with an audit of all sanitize()
15 years ago
Behdad Esfahbod
9ac7dc73bc
Check for (impossible) overflow
15 years ago
Behdad Esfahbod
9fc8684fd8
Cleanup ContextFormat3 sanitize
15 years ago
Behdad Esfahbod
e77302c61f
Add comment
15 years ago
Behdad Esfahbod
7c469c3ca4
Minor
15 years ago
Behdad Esfahbod
dc228048a8
Remove integrity check in Tag sanitize
...
Serves no useful purpose.
15 years ago
Behdad Esfahbod
8015a8c762
Don't sanitize raw table data
...
That part is performed by individual table sanitize.
15 years ago
Behdad Esfahbod
c293581e96
Add coment
15 years ago
Behdad Esfahbod
1faa76c6e8
Remove unnecessary casts
15 years ago
Behdad Esfahbod
079dc40112
Avoid overflow in TableDirectory sanitize
15 years ago
Behdad Esfahbod
fb5904ec93
Make casts more explicit
15 years ago
Behdad Esfahbod
565c80bd29
Make sure semicolon is expected after DEFINE_NULL_DATA()
15 years ago
Behdad Esfahbod
bb1e16335e
Improve Subst/Pos SubTable access and sanitize
15 years ago
Behdad Esfahbod
81f2af40f9
Simplify Extension offset now that our int types have no alignment
15 years ago
Behdad Esfahbod
19828ad42d
Sanitize shallow in Lookup since the generic SubLookup has no methods
15 years ago