From 094316bd284372c2a3d8ef02eec589901e503c59 Mon Sep 17 00:00:00 2001 From: "vandebo@chromium.org" Date: Fri, 4 Mar 2011 03:15:13 +0000 Subject: [PDF] Restrict scalars to the range that PDF understands. * Add a config flag to ignore the restrictions * Apply restriction to both SkPDFScalar and scalars used in content streams. * +/- 32,767 for the integer part. * +/1 1/65536 for the fraction part. Review URL: http://codereview.appspot.com/4240050 git-svn-id: http://skia.googlecode.com/svn/trunk@882 2bbb7eff-a529-9590-31e7-b0007b416f81 --- include/config/SkUserConfig.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/config/SkUserConfig.h') diff --git a/include/config/SkUserConfig.h b/include/config/SkUserConfig.h index c0bbb4be49..13169cae99 100644 --- a/include/config/SkUserConfig.h +++ b/include/config/SkUserConfig.h @@ -123,6 +123,11 @@ */ //#define SK_ZLIB_INCLUDE +/* Define this to allow PDF scalars above 32k. The PDF/A spec doesn't allow + them, but modern PDF interpreters should handle them just fine. + */ +//#define SK_ALLOW_LARGE_PDF_SCALARS + /* Define this to remove dimension checks on bitmaps. Not all blits will be correct yet, so this is mostly for debugging the implementation. */ -- cgit v1.2.3