Perform bounds checking on buffer given to CVMakeTitles().

Avoid unpleasant surprises.