New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash in regex search #10773
Comments
Exception in boost regex code:
with error message from exception:
, the exception is catched by the try catch block and should be presented via a tooltip, but there is another uncaught exception:
probably caused by an issues with text encoding of é |
The issue doesn't happen for just ascii characters. So [a-e is working as expected. N++ Version 7.9.5 is not affected because the tooltip extension with the boost regex exception text was not used there. Probably still of interest which encoding is used for the regex exception text. It isn't UTF8 (seems to be E9, so something cutted from https://www.compart.com/en/unicode/U+00E9) Could be fixed within s2ws by try/catch or usage of a user defined error string to avoid exception with std::range_error, see https://en.cppreference.com/w/cpp/locale/wstring_convert/from_bytes |
Description of the Issue
Specific wrong regex [a-é cause Notepad++ to crash
Steps to Reproduce the Issue
Expected Behavior
Error message about wrong regex (missing ])
Actual Behavior
Close Notepad++
Debug Information
Notepad++ v8.1.9 (64-bit)
Build time : Oct 21 2021 - 23:37:53
Path : C:\src\npp.8.1.9.portable.x64\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : ON
Cloud Config : OFF
OS Name : Windows 10 Home (64-bit)
OS Version : 2009
OS Build : 19043.1348
Current ANSI codepage : 1252
Plugins : mimeTools.dll NppConverter.dll NppExport.dll
The text was updated successfully, but these errors were encountered: