[EU-FOSSA] Fix stack overflow in exts2Filters function
This commit is contained in:
parent
5eaf67b647
commit
c906af27b2
@ -722,7 +722,7 @@ generic_string Notepad_plus::exts2Filters(generic_string exts) const
|
||||
|
||||
int j = 0;
|
||||
bool stop = false;
|
||||
for (size_t i = 0, len = exts.length(); i < len ; ++i)
|
||||
for (size_t i = 0, len = exts.length(); i < len && j < MAX_PATH - 1; ++i)
|
||||
{
|
||||
if (extStr[i] == ' ')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user