Skip to content

Commit cf19ec0

Browse files
piyukore06targos
authored andcommitted
src: fix node_dir.cc memory allocation
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]>
1 parent 194002b commit cf19ec0

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)