diff --git a/Svc/DpCatalog/DpCatalog.cpp b/Svc/DpCatalog/DpCatalog.cpp index cf55aef5c0..82b1079db2 100644 --- a/Svc/DpCatalog/DpCatalog.cpp +++ b/Svc/DpCatalog/DpCatalog.cpp @@ -358,7 +358,8 @@ Fw::CmdResponse DpCatalog::fillBinaryTree() { FwSizeType totalFiles = 0; // get file listings from file system - for (FwSizeType dir = 0; dir < this->m_numDirectories; dir++) { + // double bounds to appease static analysis + for (FwSizeType dir = 0; dir < this->m_numDirectories && dir < static_cast(DP_MAX_DIRECTORIES); dir++) { // read in each directory and keep track of total this->log_ACTIVITY_LO_ProcessingDirectory(this->m_directories[dir]); FwSizeType filesRead = 0;