Skip to content
Snippets Groups Projects
Commit 6ed2c2cb authored by George Nachman's avatar George Nachman
Browse files

Ignore a paste escape sequence with an invalid base64 block. Caused a null...

Ignore a paste escape sequence with an invalid base64 block. Caused a null pointer dereference. Issue 5578.
parent 4eb68d47
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1633,9 +1633,11 @@ static const int kMaxScreenRows = 4096;
[delegate_ terminalSetIconTitle:[token.string stringByReplacingControlCharsWithQuestionMark]];
break;
case XTERMCC_PASTE64: {
NSString *decoded = [self decodedBase64PasteCommand:token.string];
if (decoded) {
[delegate_ terminalPasteString:decoded];
if (token.string) {
NSString *decoded = [self decodedBase64PasteCommand:token.string];
if (decoded) {
[delegate_ terminalPasteString:decoded];
}
}
break;
}
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment