From cbe913a3298586406ffa1ce3fc64cd30ad64c049 Mon Sep 17 00:00:00 2001 From: Daniel Cousens Date: Fri, 21 Aug 2015 09:49:36 +1000 Subject: [PATCH] reduce MAX_ARGUMENTS_LENGTH, re resolves #69 --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index fe70d22..486d21f 100644 --- a/index.js +++ b/index.js @@ -707,7 +707,8 @@ function asciiSlice (buf, start, end) { // Based on http://stackoverflow.com/a/22747272/680742, the browser with // the lowest limit is Chrome, with 0x10000 args. -var MAX_ARGUMENTS_LENGTH = 0x10000 +// We go 1 magnitude less, for safety +var MAX_ARGUMENTS_LENGTH = 0x1000 function binarySlice (buf, start, end) { var len = buf.length -- 2.34.1