Subject: [Boost-bugs] [Boost C++ Libraries] #5969: Infinite loop in library_status
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-03 11:58:55
#5969: Infinite loop in library_status
----------------------------------------------------------+-----------------
Reporter: Loïc Joly <loic.actarus.joly@â¦> | Owner: grafik
Type: Bugs | Status: new
Milestone: To Be Determined | Component: Regression Testing
Version: Boost 1.47.0 | Severity: Problem
Keywords: |
----------------------------------------------------------+-----------------
When running library_status from the wrong folder, it go into infinite
loop. The following code seems to be responsible (in library_status.cpp,
function find_lib_name):
for(count = 0;; ++count){
if(*--e_itr == "libs")
break;
if(lib_test_dir.empty())
throw std::string("must be run from within a library
directory");
Why testing lib_test_dir.empty()? Testing e_itr would not work either
since operator-- loops when it gets to the start...
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5969> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC