summaryrefslogtreecommitdiff
path: root/xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-02-26 21:02:52 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-26 21:02:52 +0000
commit0bc02c152bd0c178a5946196e2054a5cdc7650f4 (patch)
tree4a651b86f0d240c4996ea77f041274d241e59c93 /xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp
parent611431decd9a5b7dd456355fe763b2dee9c2a1a1 (diff)
downloadpdfium-0bc02c152bd0c178a5946196e2054a5cdc7650f4.tar.xz
Add some more missing consts.chromium/3356
Get things out of the .data section. Change-Id: I375cf00186a3d5d8d10f5d147bd4b692f5db3683 Reviewed-on: https://pdfium-review.googlesource.com/27130 Commit-Queue: Tom Sepez <tsepez@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp')
-rw-r--r--xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp10
1 files changed, 0 insertions, 10 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp b/xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp
index 6312ba6b3d..023516bb6e 100644
--- a/xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp
+++ b/xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.cpp
@@ -4,17 +4,7 @@
#include "xfa/fxfa/fm2js/cxfa_fmtojavascriptdepth.h"
-namespace {
-
-// Arbitarily picked by looking at how deep a translation got before hitting
-// the getting fuzzer memory limits. Should be larger then |kMaxParseDepth| in
-// cxfa_fmparser.cpp.
-const unsigned int kMaxDepth = 5000;
-
-} // namespace
-
unsigned long CXFA_FMToJavaScriptDepth::depth_ = 0;
-unsigned long CXFA_FMToJavaScriptDepth::max_depth_ = kMaxDepth;
void CXFA_FMToJavaScriptDepth::Reset() {
depth_ = 0;