refactor(tools): remove artificial analysis ceilings

This commit is contained in:
morluto
2026-09-29 16:29:23 +08:00
parent 36aeec9586
commit 2f08c7c932
202 changed files with 2314 additions and 3072 deletions
-16
View File
@@ -1,18 +1,2 @@
/** Maximum wall-clock analysis time passed to Ghidra for one imported file. */
export const GHIDRA_ANALYSIS_TIMEOUT_SECONDS = 300;
/** Maximum CPU cores made available to one headless analysis. */
export const GHIDRA_MAX_CPU = 2;
/** Explicit JVM heap ceiling for one headless provider process. */
export const GHIDRA_MAX_HEAP = "2G";
/** Absolute import, analysis, bridge, and health startup deadline. */
export const GHIDRA_STARTUP_TIMEOUT_MS = 330_000;
/** Default bounded wait for one established bridge request. */
export const GHIDRA_REQUEST_TIMEOUT_MS = 10_000;
/** Per-function ceiling passed to Ghidra's native decompiler process. */
export const GHIDRA_DECOMPILE_TIMEOUT_SECONDS = 30;
/** Socket deadline leaves bounded time to project a native decompiler timeout. */
export const GHIDRA_DECOMPILE_REQUEST_TIMEOUT_MS = 35_000;
/** Internal safety bound for one complete Java bridge process response line. */
export const GHIDRA_MAX_LINE_BYTES = 64 * 1024 * 1024;
/** Version of REA's Java bridge handshake and request protocol. */
export const GHIDRA_BRIDGE_VERSION = 7;