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
Behdad Esfahbod
e5546a4352
Watch for overflow in Array sanitize
15 years ago
Behdad Esfahbod
4f5f1c34dd
Rename const_sub_array to sub_array since all consts are implicit now
15 years ago
Behdad Esfahbod
0795b784dd
Cosmetic
15 years ago
Behdad Esfahbod
2d98d3bbaa
Simplify Lookup sanitize
15 years ago
Behdad Esfahbod
c755cb3e3a
Change header comment
15 years ago
Behdad Esfahbod
243d20e011
More cast simplification
15 years ago
Behdad Esfahbod
0dfcc13a46
Rename ConstCharP to CharP (overloaded now)
15 years ago
Behdad Esfahbod
62c0fd7573
Cleanup de-const-casting during sanitize
15 years ago
Behdad Esfahbod
dd15587056
Add more comments
15 years ago
Behdad Esfahbod
c85c362067
Add comment
15 years ago
Behdad Esfahbod
2467c669c2
Add comment
15 years ago
Behdad Esfahbod
29c3f5e1b6
Improve comment
15 years ago
Behdad Esfahbod
01c01618e9
Further simplify IntType struct defs
15 years ago
Behdad Esfahbod
2cb08458f6
Rename const_array() to array() (overloaded)
15 years ago
Behdad Esfahbod
2e2f43edf2
Remove ArrayAfter, use StructAfter in place
15 years ago
Behdad Esfahbod
e961c86c57
Convert NEXT() and ARRAY_AFTER() macros to templates
15 years ago
Behdad Esfahbod
198facdc55
Use templates for const char * casts
15 years ago
Behdad Esfahbod
1922ffe701
Const correctness
15 years ago
Behdad Esfahbod
e032ed9f75
Use templates for defining int typess
15 years ago
Behdad Esfahbod
2c9fd2adce
Remove unused macro
15 years ago