qoi: fix buffer overflow

- fix buffer overflow with corrupted images without image data
- fix unable to read very small images (e.g. 1x1 px)
- new test cases added
- detect incomplete files by checking the end of streams as written in the specs
This commit is contained in:
Mirco Miranda
2023-08-18 14:09:00 +00:00
committed by Daniel Novomeský
parent 35ff3efbbc
commit 6254529d2d
9 changed files with 21 additions and 4 deletions

Binary file not shown.