src/hb-sanitize.hh


Log

Author Commit Date CI Message
Garret Rieger 64b29dbd 2021-11-09T09:13:14 [subset] reuse colrv1 max nesting depth constant for sanitize.
Garret Rieger ace98cc6 2021-11-08T15:47:56 [subset] Only sanitize recursion depth in COLR.
Garret Rieger 782a7377 2021-11-04T13:39:11 [sanitize] add a maximum recursion depth for sanitize.
Behdad Esfahbod 6d555ce8 2021-11-02T00:18:22 [meta] Use std::forward instead of hb_forward()
Garret Rieger 8ef4257d 2021-03-31T15:00:46 [sanitize] change max ops to track number of bytes processed. Counting bytes as the operations is likely to be a better proxy for how much work processing the table will cost vs. the current approach of counting the number of sub-objects. This should allow checks for max features, max scripts, etc. to be removed. I tested this change against the full collection of fonts at https://github.com/google/fonts and a max ops factor of 3 was sufficient to successfully sanitize all of them.
Behdad Esfahbod a650243d 2021-01-24T13:30:06 [sanitize] Fix typo
Khaled Hosny a8e72ee7 2020-12-30T23:08:40 [docs] Use %true and %false consistently
Behdad Esfahbod 1535440b 2020-06-19T08:30:59 [dispatch] Fix debug builds
Ebrahim Byagowi b398748d 2020-03-04T11:18:19 [algs] Add hb_clamp Similar to stl and glsl's clamp
Ebrahim Byagowi d3836039 2020-03-02T22:41:08 Limit OT::Lookup subtables (#2219) Fixes https://crbug.com/oss-fuzz/13943
Marcel Fabian Krüger b28c2825 2019-12-17T02:58:51 Check to avoid overflows
Marcel Fabian Krüger d70afb1e 2019-12-17T02:29:28 Clamp max_ops to upper bound in hb-sanitize.hh
Ebrahim Byagowi a0b4ac4d 2019-08-24T17:57:14 Turn 8 spaces to tab across the project According to the current code style of the project
Behdad Esfahbod 25a5b287 2019-05-10T16:01:39 Fix sanitize fail of extension sublookups Fixes https://bugs.chromium.org/p/chromium/issues/detail?id=960331
Behdad Esfahbod 2ba984fc 2019-05-07T23:28:22 Fix signed comparison on 32bit
Behdad Esfahbod 83e3eabd 2019-05-07T20:58:43 Whitespace
Behdad Esfahbod 41248cce 2019-05-07T20:54:31 Remove MIN/MAX in favor of hb_min/hb_max
Behdad Esfahbod c14efb8e 2019-05-05T09:54:58 Fix previous commit Priority should be given to specific over dispatch. Broke sanitize before. This fixes it, by moving prioritization to the context implementation, since the correct priority cannot be done in the dispatch implementation. Done for subset and sanitize only, which need it.
Behdad Esfahbod b10f6593 2019-05-05T09:23:35 [dispatch] Use functionality from previous commit To remove a couple of unwanted wrapper methods
Behdad Esfahbod ac350c92 2019-05-05T09:10:46 [dispatch] Try obj.dispatch(c) before trying c->dispatch(obj)
Behdad Esfahbod a7c63cd8 2019-03-30T14:59:40 Split sanitize and dispatch into their own files