Skip to content

Commit 19eb8e0

Browse files
piyukore06BethGriggs
authored andcommitted
src: fix node_dir.cc memory allocation
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>
1 parent 7dc8237 commit 19eb8e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_dir.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static MaybeLocal<Array> DirentListToArray(
172172
int num,
173173
enum encoding encoding,
174174
Local<Value>* err_out) {
175-
MaybeStackBuffer<Local<Value>, 96> entries(num * 3);
175+
MaybeStackBuffer<Local<Value>, 64> entries(num * 2);
176176

177177
// Return an array of all read filenames.
178178
int j = 0;

0 commit comments

Comments
 (0)