Queue template parsing OOB access fix by Flössie

https://discuss.pixls.us/t/change-of-queue-output-directory-not-taken-fully-into-account-if-no-f/11975/4
This commit is contained in:
Morgan Hardwood
2019-04-02 21:10:16 +02:00
parent 458f47d12e
commit 977af213b9

View File

@@ -860,9 +860,9 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam
Glib::ustring path = "";
if (options.saveUsePathTemplate) {
int ix = 0;
unsigned int ix = 0;
while (options.savePathTemplate[ix] != 0) {
while (ix < options.savePathTemplate.size()) {
if (options.savePathTemplate[ix] == '%') {
ix++;