qoi: fix buffer overflow kf5

Backport of MR !167:
- 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 15:11:41 +00:00
committed by Daniel Novomeský
parent 4348a09733
commit 274f30e008
9 changed files with 21 additions and 4 deletions

Binary file not shown.