nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5533e38fbbdb7d91dc7de2dea7881cc46c6a2350
parent db129c9120252c04b2eec894b7c26a4f2a1f0453
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Sun,  1 Mar 2020 18:59:27 +0530

Guard against too many key-value pairs

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -2915,7 +2915,7 @@ static bool parsekvpair(kv **arr, char **envcpy, const uchar id, ushort *items) ++nextkey; } - if (!maxitems) + if (!maxitems || maxitems > 100) return FALSE; *arr = calloc(maxitems, sizeof(kv));