This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Guard against too many key-value pairs
master
Arun Prakash Jana
4 years ago
parent
db129c9120
commit
5533e38fbb
No known key found for this signature in database
GPG Key ID:
A75979F35C080412
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/nnn.c
+ 1
- 1
src/nnn.c
View File
@@ -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));
Write
Preview
Loading…
Cancel
Save