Fix buffer overflow
Fix buffer overflow

Thank oss-fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=47676

metsma/OpenSC,LudovicRousseau/OpenSC,OpenSC/OpenSC,metsma/OpenSC,OpenSC/OpenSC,OpenSC/OpenSC,LudovicRousseau/OpenSC,LudovicRousseau/OpenSC,dengert/OpenSC,dengert/OpenSC,philipWendland/OpenSC,mouse07410/OpenSC,philipWendland/OpenSC,metsma/OpenSC,mouse07410/OpenSC,dengert/OpenSC,philipWendland/OpenSC,mouse07410/OpenSC