From c906af27b2c6bba1bc025725a1070ff043c21e01 Mon Sep 17 00:00:00 2001 From: Don HO Date: Wed, 30 Jan 2019 23:33:16 +0100 Subject: [PATCH] [EU-FOSSA] Fix stack overflow in exts2Filters function --- PowerEditor/src/NppIO.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 77dc4577..659cda5b 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -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] == ' ') {