In the following piece of code in "main.cpp", chainActive.Genesis() could return NULL, there's no branch doing this case. If chainActive.Genesis() returns NULL, the code will crash
vStack.push_back(make_pair(0, chainActive.Genesis()));
int nPrevCol = 0;
int count = 0;
while (!vStack.empty())
{
cout << count++ << endl;
int nCol = vStack.back().first;
CBlockIndex* pindex = vStack.back().second;
vStack.pop_back();