do not crash readXLMetaNoData - if the xl.meta has incorrect content (#14538)

```
tmp = buf[want:]
```

Would potentially crash when `buf` is truncated for some reason
and does not have the expected bytes, this is of course considered
not normal and is an odd situation. But we do not need to crash
here instead allow for errors to be returned and let callers handle
the errors.
This commit is contained in:
Harshavardhana
2022-03-14 09:07:46 -07:00
committed by GitHub
parent 6187440f35
commit cf94d1f1f1
4 changed files with 38 additions and 5 deletions

BIN
cmd/testdata/xl.meta-corrupt.gz vendored Normal file

Binary file not shown.