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 <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: David Carlier <[email protected]>
  • Loading branch information
piyukore06 authored and targos committed Dec 9, 2019
1 parent a0fa327 commit b51b26f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node_dir.cc
Original file line number Diff line number Diff line change
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 b51b26f

Please sign in to comment.