dv: Add a guard to not overread the ppcm array