Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPriyanka Kore <piyukore06@gmail.com>2019-12-01 15:41:39 +0300
committerMichaƫl Zasso <targos@protonmail.com>2019-12-09 12:23:02 +0300
commitb51b26ffef23e2f00f462819518759c1d12e4121 (patch)
tree6ce778df4937f0d76db733f335e34ae5b89c5dcf /src
parenta0fa327365c2e713676a5c2f3c9a20f26bd981c1 (diff)
src: fix node_dir.cc memory allocation
PR-URL: https://github.com/nodejs/node/pull/30750 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: David Carlier <devnexen@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/node_dir.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_dir.cc b/src/node_dir.cc
index 37285928fbd..36366502aaf 100644
--- a/src/node_dir.cc
+++ b/src/node_dir.cc
@@ -172,7 +172,7 @@ static MaybeLocal<Array> DirentListToArray(
int num,
enum encoding encoding,
Local<Value>* err_out) {
- MaybeStackBuffer<Local<Value>, 96> entries(num * 3);
+ MaybeStackBuffer<Local<Value>, 64> entries(num * 2);
// Return an array of all read filenames.
int j = 0;