From 9108ad211bf00d6e512af0919b743c1bf8b0eeb8 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Thu, 26 Jun 2014 16:01:46 -0700 Subject: Import Chromium base/numerics to resolve integer overflow. We'll use this for integer overflows going forward. BUG=382606 R=jam@chromium.org Review URL: https://codereview.chromium.org/349363005 --- pdfium.gyp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pdfium.gyp') diff --git a/pdfium.gyp b/pdfium.gyp index 7d62b1d164..34d6959430 100644 --- a/pdfium.gyp +++ b/pdfium.gyp @@ -55,6 +55,7 @@ 'target_name': 'pdfium', 'type': 'static_library', 'dependencies': [ + 'safemath', 'fdrm', 'fpdfdoc', 'fpdfapi', @@ -142,6 +143,19 @@ ], }, }, + { + 'target_name': 'safemath', + 'type': 'none', + 'sources': [ + 'third_party/logging.h', + 'third_party/macros.h', + 'third_party/template_util.h', + 'third_party/numerics/safe_conversions.h', + 'third_party/numerics/safe_conversions_impl.h', + 'third_party/numerics/safe_math.h', + 'third_party/numerics/safe_math_impl.h', + ], + }, { 'target_name': 'fdrm', 'type': 'static_library', -- cgit v1.2.3