mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-04-08 17:15:37 +02:00
[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…
x
Reference in New Issue
Block a user