Skip to content

Commit 547ba1c

Browse files
cblichmanncopybara-github
authored andcommitted
ELF parser: Increase maximum number of allowed imported libraries
Some binaries really do go overboard with dynamically linked libraries, so increase the limit to 200. This has been an arbitrary limit to begin with, so... shrug. PiperOrigin-RevId: 785423012 Change-Id: Ie4662899adea75cef8c6ec5d3f38bfd3d146cfc9
1 parent 1a33bfd commit 547ba1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sandboxed_api/sandbox2/util/library_resolver.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ absl::StatusOr<std::string> ResolveLibraryPaths(
173173
constexpr int kMaxResolvingDepth = 10;
174174
constexpr int kMaxResolvedEntries = 1000;
175175
constexpr int kMaxLoadedEntries = 100;
176-
constexpr int kMaxImportedLibraries = 100;
176+
constexpr int kMaxImportedLibraries = 200;
177177

178178
absl::flat_hash_set<std::string> imported_libraries;
179179
std::vector<std::pair<std::string, int>> to_resolve;

0 commit comments

Comments
 (0)