fixed out of bounds read
fixed out of bounds read

fixes https://oss-fuzz.com/testcase-detail/5769032858075136

hongquan/OpenSC-main,rickyepoderi/OpenSC,frankmorgner/OpenSC,rickyepoderi/OpenSC,dengert/OpenSC,Jakuje/OpenSC,OpenSC/OpenSC,frankmorgner/OpenSC,mouse07410/OpenSC,Jakuje/OpenSC,OpenSC/OpenSC,dengert/OpenSC,metsma/OpenSC,fabled/OpenSC,mouse07410/OpenSC,frankmorgner/OpenSC,fabled/OpenSC,LudovicRousseau/OpenSC,AktivCo/OpenSC,philipWendland/OpenSC,metsma/OpenSC,AktivCo/OpenSC,metsma/OpenSC,mouse07410/OpenSC,AktivCo/OpenSC,hongquan/OpenSC-main,dengert/OpenSC,fabled/OpenSC,fabled/OpenSC,frankmorgner/OpenSC,OpenSC/OpenSC,Jakuje/OpenSC,hongquan/OpenSC-main,philipWendland/OpenSC,rickyepoderi/OpenSC,LudovicRousseau/OpenSC,Jakuje/OpenSC,LudovicRousseau/OpenSC,philipWendland/OpenSC