From 49f6c63aba4d77cd14fa205bee4bf427cefdaa44 Mon Sep 17 00:00:00 2001 From: Dimitri van Heesch Date: Sun, 8 Mar 2015 12:57:59 +0100 Subject: Fixed issue accessing uninitialized buffer under certain conditions. --- src/definition.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/definition.cpp b/src/definition.cpp index 91aaa37..1381ea5 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -897,6 +897,7 @@ QCString Definition::getSourceAnchor() const { const int maxAnchorStrLen = 20; char anchorStr[maxAnchorStrLen]; + anchorStr[0]='\0'; if (m_impl->body && m_impl->body->startLine!=-1) { if (Htags::useHtags) -- cgit v0.12