The clear() function of the chivector class did not empty the extensions vector. Due to which the chivector contains elements even after the clear function is executed and hence returns invalid values when the get() function is called. To fix this bug, if extensions vector exists, the std::vector::clear function has to be called to clear all the elements in the chivector.
The
clear()
function of thechivector
class did not empty theextensions
vector. Due to which the chivector contains elements even after the clear function is executed and hence returns invalid values when theget()
function is called. To fix this bug, ifextensions
vector exists, thestd::vector::clear
function has to be called to clear all the elements in the chivector.