-
Notifications
You must be signed in to change notification settings - Fork 181
Closed
Labels
PresentDataRelates to the collection/analysis library (PresentData/)Relates to the collection/analysis library (PresentData/)bug
Description
When launching a process with non-ANSI characters in filename (e.g. try to copy notepad.exe and rename it to include non-ANSI characters), PresentMon crashes in HandleProcessEvent here:
| wcstombs_s(&size, &event.ImageFileName[0], size + 1, ImageName.c_str() + start, size); |
Problem is that if wcstombs_s fails to convert the process name to ANSI, the resulting string size will be 0.
Best solution would be to change ImageFileName to wstring rather than a plain char string. This will also allow proper filtering of process names with non-ANSI chars.
Metadata
Metadata
Assignees
Labels
PresentDataRelates to the collection/analysis library (PresentData/)Relates to the collection/analysis library (PresentData/)bug