From 69bc6ef8d81987c4688067977f6c2b5a18b120ff Mon Sep 17 00:00:00 2001 From: Nemoumbra Date: Tue, 10 Nov 2026 21:51:45 +0300 Subject: [PATCH] Increase response size limit for ImStructViewer to 256Mb --- Common/GhidraClient.cpp | 2 ++ Common/GhidraClient.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Common/GhidraClient.cpp b/Common/GhidraClient.cpp index 41e7ae72ed..98b83e07bc 100644 --- a/Common/GhidraClient.cpp +++ b/Common/GhidraClient.cpp @@ -196,6 +196,8 @@ bool GhidraClient::FetchTypes() { bool GhidraClient::FetchResource(const std::string &path, std::string &outResult) { http::Client http(nullptr); + http.SetMaxResponseSize(maxResponseSize); + if (!http.Resolve(host_.c_str(), port_)) { pendingResult_.error = "can't resolve host"; return false; diff --git a/Common/GhidraClient.h b/Common/GhidraClient.h index 2f77fdce82..9726382115 100644 --- a/Common/GhidraClient.h +++ b/Common/GhidraClient.h @@ -128,6 +128,8 @@ private: std::string host_; int port_ = 0; + static constexpr size_t maxResponseSize = 256 * 1024 * 1024; + bool FetchAllDo(const std::string &host, int port); bool FetchSymbols();