Boost C++ Libraries: Ticket #5969: Infinite loop in library_status https://svn.boost.org/trac10/ticket/5969 <p> 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): </p> <blockquote> <p> for(count = 0;; ++count){ </p> <blockquote> <p> if(*--e_itr == "libs") </p> <blockquote> <p> break; </p> </blockquote> <p> if(lib_test_dir.empty()) </p> <blockquote> <p> throw std::string("must be run from within a library directory"); </p> </blockquote> </blockquote> </blockquote> <p> Why testing lib_test_dir.empty()? Testing e_itr would not work either since operator-- loops when it gets to the start... </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5969 Trac 1.4.3 Robert Ramey Fri, 19 Oct 2012 20:48:22 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5969#comment:1 https://svn.boost.org/trac10/ticket/5969#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> fixed. </p> Ticket