This commit is contained in:
tildearrow 2022-04-26 01:07:28 -05:00
parent 28af57c4f0
commit 9eb9561b53
4 changed files with 26 additions and 1 deletions

View file

@ -1220,6 +1220,11 @@ std::vector<DivInstrument*> DivEngine::instrumentFromFile(const char* path) {
fclose(f);
return ret;
}
if (len==(SIZE_MAX>>1)) {
lastError=strerror(errno);
fclose(f);
return ret;
}
if (len==0) {
lastError=strerror(errno);
fclose(f);