From 1f022e281f808906e432ec42ca4b9c7f9ee0a1d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 10 Apr 2010 21:28:49 +0200 Subject: [PATCH] Fixed SIGABRT in new checking --- lib/checkbufferoverrun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index 4a4e36a49..087718587 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -1336,7 +1336,7 @@ private: /** @brief Found array usage.. */ static void array_index(const Token *tok, std::list &checks, unsigned int varid1, unsigned int varid2) { - if (varid1 == 0 || varid2 == 0) + if (checks.empty() || varid1 == 0 || varid2 == 0) return; // Locate array info corresponding to varid1