[EU-FOSSA] Fix stack overflow in exts2Filters function

This commit is contained in:
Don HO 2019-01-30 23:33:16 +01:00
parent 5eaf67b647
commit c906af27b2

View File

@ -722,7 +722,7 @@ generic_string Notepad_plus::exts2Filters(generic_string exts) const
int j = 0; int j = 0;
bool stop = false; 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] == ' ') if (extStr[i] == ' ')
{ {