Skip to content

Commit

Permalink
src: fix node_dir.cc memory allocation
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
piyukore06 authored and targos committed Jan 13, 2020
1 parent 194002b commit cf19ec0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_dir.cc
Expand Up @@ -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;
Expand Down

0 comments on commit cf19ec0

Please sign in to comment.