From 8ad4fcd0a81c3af7d6da9ccf8c28fe14f8bed3dd Mon Sep 17 00:00:00 2001 From: Kevin Hamacher Date: Tue, 16 Apr 2019 03:00:09 -0700 Subject: [PATCH] minielf: Increase maximum amount of symbols loaded PiperOrigin-RevId: 243775723 Change-Id: I5398ec23bd76be01c48c69bd4decb015a48386fc --- sandboxed_api/sandbox2/util/minielf.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sandboxed_api/sandbox2/util/minielf.cc b/sandboxed_api/sandbox2/util/minielf.cc index 076b6dd..20deb4b 100644 --- a/sandboxed_api/sandbox2/util/minielf.cc +++ b/sandboxed_api/sandbox2/util/minielf.cc @@ -88,10 +88,10 @@ class ElfParser { // Arbitrary cut-off values, so we can parse safely. static constexpr int kMaxProgramHeaderEntries = 500; static constexpr int kMaxSectionHeaderEntries = 500; - static constexpr size_t kMaxSectionSize = 50 * 1024 * 1024; + static constexpr size_t kMaxSectionSize = 100 * 1024 * 1024; static constexpr size_t kMaxStrtabSize = 500 * 1024 * 1024; static constexpr size_t kMaxLibPathSize = 1024; - static constexpr int kMaxSymbolEntries = 100000; + static constexpr int kMaxSymbolEntries = 1 * 1000 * 1000; static constexpr int kMaxDynamicEntries = 10000; static constexpr size_t kMaxInterpreterSize = 1000;