minielf: Increase maximum amount of symbols loaded

PiperOrigin-RevId: 243775723
Change-Id: I5398ec23bd76be01c48c69bd4decb015a48386fc
This commit is contained in:
Kevin Hamacher 2019-04-16 03:00:09 -07:00 committed by Copybara-Service
parent af44845246
commit 8ad4fcd0a8

View File

@ -88,10 +88,10 @@ class ElfParser {
// Arbitrary cut-off values, so we can parse safely. // Arbitrary cut-off values, so we can parse safely.
static constexpr int kMaxProgramHeaderEntries = 500; static constexpr int kMaxProgramHeaderEntries = 500;
static constexpr int kMaxSectionHeaderEntries = 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 kMaxStrtabSize = 500 * 1024 * 1024;
static constexpr size_t kMaxLibPathSize = 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 int kMaxDynamicEntries = 10000;
static constexpr size_t kMaxInterpreterSize = 1000; static constexpr size_t kMaxInterpreterSize = 1000;