1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Increase maxBuffer size when reading windows CAs

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2022-10-28 08:39:34 -04:00
parent 5019781fbf
commit 18b6b4ca2e

View File

@ -32,7 +32,9 @@ const requestSystemCAsInjectable = getInjectable({
* This needs to be done manually because for some reason calling the api from "win-ca" * This needs to be done manually because for some reason calling the api from "win-ca"
* directly fails to load "child_process" correctly on renderer * directly fails to load "child_process" correctly on renderer
*/ */
const result = await execFile(wincaRootsExePath); const result = await execFile(wincaRootsExePath, {
maxBuffer: 128 * 1024 * 1024, // 128 MiB
});
if (!result.callWasSuccessful) { if (!result.callWasSuccessful) {
logger.warn(`[INJECT-CAS]: Error retreiving CAs`, result.error); logger.warn(`[INJECT-CAS]: Error retreiving CAs`, result.error);