From 41b3ed788d6b622bc8f3f8a992163e593891be9c Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Tue, 8 Oct 2013 05:33:37 +0200 Subject: [PATCH] CheckIO: fix crash --- lib/checkio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkio.cpp b/lib/checkio.cpp index 484498083..a9333d857 100644 --- a/lib/checkio.cpp +++ b/lib/checkio.cpp @@ -585,7 +585,7 @@ void CheckIO::checkWrongPrintfScanfArguments() } ++i; } - if (*i == '[') { + if (i != formatString.end() && *i == '[') { while (i != formatString.end()) { if (*i == ']') { if (!skip) {