diff options
| author | 2020-03-01 18:59:27 +0530 | |
|---|---|---|
| committer | 2020-03-01 18:59:27 +0530 | |
| commit | 5533e38fbbdb7d91dc7de2dea7881cc46c6a2350 (patch) | |
| tree | 12b07e4fd47f8a5729d179f3080db8d46cad4232 /src | |
| parent | db129c9120252c04b2eec894b7c26a4f2a1f0453 (diff) | |
| download | nnn-5533e38fbbdb7d91dc7de2dea7881cc46c6a2350.tar.gz | |
Guard against too many key-value pairs
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); |