mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
MR-872: Prevent outofbounds ex parsing args
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
|
||||
Fixes:
|
||||
------
|
||||
MR-872: Crash in External Tools when arguments aren't quoted
|
||||
MR-854: crashes when right clicking on connection tab
|
||||
MR-852: Option "Allow only a single instance of the application" non-functional
|
||||
MR-836: Trying to delete a folder of connections only deletes 2 connections at a time
|
||||
|
||||
@@ -124,11 +124,7 @@ namespace mRemoteNG.Tools
|
||||
|
||||
if (haveReplacement)
|
||||
{
|
||||
char trailing = '\0';
|
||||
if (tokenEnd + 2 <= input.Length)
|
||||
trailing = input.Substring(tokenEnd + 1, 1).ToCharArray()[0];
|
||||
else
|
||||
trailing = string.Empty.ToCharArray()[0];
|
||||
var trailing = tokenEnd + 2 <= input.Length ? input.Substring(tokenEnd + 1, 1).ToCharArray()[0] : '\0';
|
||||
|
||||
if (escape == EscapeType.All)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user