First wave of bugs uncovered through Coverity.