From cf19ec0c23d3a05b0b0caea10222beee642a8e25 Mon Sep 17 00:00:00 2001 From: Priyanka Kore Date: Sun, 1 Dec 2019 13:41:39 +0100 Subject: [PATCH] src: fix node_dir.cc memory allocation PR-URL: https://github.com/nodejs/node/pull/30750 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Colin Ihrig Reviewed-By: David Carlier --- src/node_dir.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_dir.cc b/src/node_dir.cc index 37285928fbd731..36366502aafe3b 100644 --- a/src/node_dir.cc +++ b/src/node_dir.cc @@ -172,7 +172,7 @@ static MaybeLocal DirentListToArray( int num, enum encoding encoding, Local* err_out) { - MaybeStackBuffer, 96> entries(num * 3); + MaybeStackBuffer, 64> entries(num * 2); // Return an array of all read filenames. int j = 0;