src/nnn.c | 2 +- diff --git a/src/nnn.c b/src/nnn.c index b31418cf5e62d024b20de50412d8429c90f6bb98..fdc4c3aa9cc7669cb095df0d652b2d43ce1987d4 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -2915,7 +2915,7 @@ ++maxitems; ++nextkey; } - if (!maxitems) + if (!maxitems || maxitems > 100) return FALSE; *arr = calloc(maxitems, sizeof(kv));