From 9ca32113368cc2142d5c59ce86e6d76689ba3ba7 Mon Sep 17 00:00:00 2001 From: pbca26 Date: Wed, 17 May 2017 20:07:58 +0300 Subject: [PATCH] exec buffer overflow fix --- routes/shepherd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/routes/shepherd.js b/routes/shepherd.js index 60c9e15..0c125bc 100644 --- a/routes/shepherd.js +++ b/routes/shepherd.js @@ -1067,7 +1067,9 @@ function herder(flock, data) { console.log('exec' + komododBin + ' ' + data.ac_options.join(' ')); shepherd.writeLog('exec' + komododBin + ' ' + data.ac_options.join(' ')); - exec(komododBin + ' ' + data.ac_options.join(' '), function(error, stdout, stderr) { + exec(komododBin + ' ' + data.ac_options.join(' '), { + maxBuffer: 1024 * 10000 // 10 mb + }, function(error, stdout, stderr) { console.log('stdout: ' + stdout); console.log('stderr: ' + stderr); shepherd.writeLog('stdout: ' + stdout);