From 124d08dc4e06cfe0fb33b6cc30705f7fa2670d74 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sat, 6 Aug 2022 10:38:46 -0400 Subject: [PATCH] idk how the out of bounds happened but it is an expendable operation --- terminalemulator.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/terminalemulator.d b/terminalemulator.d index dcf4abd..3b13f50 100644 --- a/terminalemulator.d +++ b/terminalemulator.d @@ -397,7 +397,8 @@ class TerminalEmulator { } } - sendHyperlinkData(buffer[0 .. end - start], number); + if((cast(size_t) (end - start)) <= buffer.length) + sendHyperlinkData(buffer[0 .. end - start], number); } } }