Ported r2696 from ZXing
Ported r2696 from ZXing

Original commit message: "Fix two other AIOOBE from pure barcode mode,
update javadoc"

Kalvar/ZXingObjC,YotrolZ/ZXingObjC,fuzhiqiang1989/ZXingObjC,TheLevelUp/ZXingObjC,davidjackman/ZXingObjC,JeremyPacker/ZXingObjC,zeffon/ZXingObjC,jianwoo/ZXingObjC,TheLevelUp/ZXingObjC,zilaiyedaren/ZXingObjC,RockyAo/ZXingObjC,tejesh-alimilli/ZXingObjC,peacemoon/ZXingObjC,Stocard/ZXingObjC,sdhzwm/ZXingObjC,zilaiyedaren/ZXingObjC,rowliny/ZXingObjC,zeffon/ZXingObjC,Kalvar/ZXingObjC,trsathya/ZXingObjC,fanwenkai/ZXingObjC,Kevin775263419/ZXingObjC,jianwoo/ZXingObjC,rkpant/ZXingObjC,cortices/ZXingObjC,Kevin775263419/ZXingObjC,rowliny/ZXingObjC,xuxubin/ZXingObjC,benjohnde/ZXingObjC,fanwenkai/ZXingObjC,fuzhiqiang1989/ZXingObjC,trsathya/ZXingObjC,ufs-slizhik/ZXingObjC,JeremyPacker/ZXingObjC,wuxsoft/ZXingObjC,peacemoon/ZXingObjC,jebai0521/ZXingObjC,wuxsoft/ZXingObjC,rkpant/ZXingObjC,cortices/ZXingObjC,sdhzwm/ZXingObjC,ufs-slizhik/ZXingObjC,Stocard/ZXingObjC,RockyAo/ZXingObjC,YotrolZ/ZXingObjC,adan016/ZXingObjC,xuxubin/ZXingObjC,jebai0521/ZXingObjC,elegion/ios-pods-ZXingObjC,davidjackman/ZXingObjC,elegion/ios-pods-ZXingObjC,benjohnde/ZXingObjC,adan016/ZXingObjC,tejesh-alimilli/ZXingObjC