Skip to content

Crash an application when it does not have access to a choice file and the path is specified in the "Cloud & Link" option #14131

@dumitory-dev

Description

@dumitory-dev

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:

  1. Open the Portable Notepad++
  2. Go to the menu Setting -> Preferences -> Cloud & Link -> Set your cloud location path here
  3. Select the path (can be any path) and Click on the "Close" button
  4. Go to the "<path_to_the_root_of_notepad>\cloud"
  5. Select right click on the "choice" file and select "Properties"
  6. Click on the "Security" -> "Edit" button
  7. Select the current user and click on deny for "Full control"
  8. Start the Notepad++ without administrator rights

Gif:
issue

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++```

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions