Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: core/src/fxcrt/fx_safe_types.h

Issue 896023003: Prevent base::CheckedNumeric from leaking outside of pdfium. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add name of new .h to build files. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « core/src/fxcrt/extension.h ('k') | fpdfsdk/src/fpdfview.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef FX_SAFE_TYPES_H_
6 #define FX_SAFE_TYPES_H_
7
8 #include <stdlib.h> // For size_t.
9
10 #include "../../../third_party/numerics/safe_math.h"
11
12 typedef base::CheckedNumeric<FX_DWORD> FX_SAFE_DWORD;
13 typedef base::CheckedNumeric<FX_INT32> FX_SAFE_INT32;
14 typedef base::CheckedNumeric<size_t> FX_SAFE_SIZE_T;
15 typedef base::CheckedNumeric<FX_FILESIZE> FX_SAFE_FILESIZE;
16
17 #endif // FX_SAFE_TYPES_H_
OLDNEW
« no previous file with comments | « core/src/fxcrt/extension.h ('k') | fpdfsdk/src/fpdfview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698