Check file size before allocation
Check file size before allocation

Thanks OSS-Fuzz
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=53090

OpenSC/OpenSC,metsma/OpenSC,mouse07410/OpenSC,OpenSC/OpenSC,metsma/OpenSC,philipWendland/OpenSC,mouse07410/OpenSC,metsma/OpenSC,mouse07410/OpenSC,philipWendland/OpenSC,OpenSC/OpenSC,philipWendland/OpenSC