]> zoso.dev Git - buffer.git/commitdiff
reduce MAX_ARGUMENTS_LENGTH, re resolves #69
authorDaniel Cousens <github@dcousens.com>
Thu, 20 Aug 2015 23:49:36 +0000 (09:49 +1000)
committerDaniel Cousens <github@dcousens.com>
Thu, 20 Aug 2015 23:49:43 +0000 (09:49 +1000)
index.js

index fe70d22a7d01e398503481693cf69d51d501e615..486d21f90531c1f427c32ad5cb475f84431a8a27 100644 (file)
--- 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