Opened 11 years ago

Closed 10 years ago

#5969 closed Bugs (fixed)

Infinite loop in library_status

Reported by: Loïc Joly <loic.actarus.joly@…> Owned by: René Rivera
Milestone: To Be Determined Component: Regression Testing USE GITHUB
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

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...

Change History (1)

comment:1 by Robert Ramey, 10 years ago

Resolution: fixed
Status: newclosed

fixed.

Note: See TracTickets for help on using tickets.