From 9e6888070ddb127c2b9534fbc847f87ca832daf2 Mon Sep 17 00:00:00 2001 From: johenning Date: Sat, 26 Aug 2017 16:02:36 +0200 Subject: [PATCH] Added check to avoid out of bounds access --- rtgui/batchqueue.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/batchqueue.cc b/rtgui/batchqueue.cc index 03cc9535c..3a5576987 100644 --- a/rtgui/batchqueue.cc +++ b/rtgui/batchqueue.cc @@ -746,7 +746,7 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam if (origFileName[0] == '/') { pa.push_back ("/" + da[0]); } else if (origFileName[0] == '\\') { - if (origFileName[1] == '\\') { + if (origFileName.size() > 1 && origFileName[1] == '\\') { pa.push_back ("\\\\" + da[0]); } else {