File tree Expand file tree Collapse file tree
packages/compile-solidity/compilerSupplier/loadingStrategies Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,6 +6,10 @@ const semver = require("semver");
66const LoadingStrategy = require ( "./LoadingStrategy" ) ;
77const VersionRange = require ( "./VersionRange" ) ;
88
9+ // Set a sensible limit for maxBuffer
10+ // See https://github.com/nodejs/node/pull/23027
11+ const maxBuffer = 1024 * 1024 * 10 ;
12+
913class Docker extends LoadingStrategy {
1014 async load ( ) {
1115 const versionString = await this . validateAndGetSolcVersion ( ) ;
@@ -16,7 +20,7 @@ class Docker extends LoadingStrategy {
1620
1721 try {
1822 return {
19- compile : options => String ( execSync ( command , { input : options } ) ) ,
23+ compile : options => String ( execSync ( command , { input : options , maxBuffer } ) ) ,
2024 version : ( ) => versionString
2125 } ;
2226 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments