-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Labels
Description
Description of the Issue
Crash an application when it does not have access to a choice file and the path is specified in the "Cloud & Link" option
Steps to Reproduce the Issue
Fast way:
- Open the Portable Notepad++
- Go to the menu Setting -> Preferences -> Cloud & Link -> Set your cloud location path here
- Select the path (can be any path) and Click on the "Close" button
- Go to the "<path_to_the_root_of_notepad>\cloud"
- Select right click on the "choice" file and select "Properties"
- Click on the "Security" -> "Edit" button
- Select the current user and click on deny for "Full control"
- Start the Notepad++ without administrator rights
Expected Behavior
The Notepad++ should start normally.
Actual Behavior
The Notepad++ crashes.
Debug Information
Notepad++ v8.5.6 (64-bit)
Build time : Aug 15 2023 - 15:29:28
Path : C:\Users\dev\Downloads\npp.8.5.6.portable.x64\notepad++.exe
Command Line :
Admin mode : OFF
Local Conf mode : ON
Cloud Config : C:\Users\dev\Downloads\npp.8.5.6.portable.x64
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.3324
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)
Stack trace
notepad+.exe!_invalid_parameter_internal(const wchar_t * expression, const wchar_t * function_name, const wchar_t * file_name, unsigned int line_number, unsigned __int64 reserved, __crt_cached_ptd_host & ptd) Line 114 C++
notepad++.exe!_invalid_parameter(const wchar_t * expression, const wchar_t * function_name, const wchar_t * file_name, unsigned int line_number, unsigned __int64 reserved) Line 125 C++
notepad++.exe!fread_s(void * buffer, unsigned __int64 buffer_size, unsigned __int64 element_size, unsigned __int64 element_count, _iobuf * stream) Line 48 C++
notepad++.exe!fread(void * buffer, unsigned __int64 element_size, unsigned __int64 element_count, _iobuf * stream) Line 240 C++
notepad++.exe!getFileContent(const wchar_t * file2read) Line 66 C++
notepad++.exe!NppParameters::load() Line 1193 C++
notepad++.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * __formal, wchar_t * pCmdLine, int __formal) Line 499 C++```
Reactions are currently unavailable
