mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-07-18 20:04:16 -04:00
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:
committed by
Daniel Novomeský
parent
35ff3efbbc
commit
6254529d2d
BIN
autotests/read/qoi/1px.png
Normal file
BIN
autotests/read/qoi/1px.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 551 B |
BIN
autotests/read/qoi/1px.qoi
Normal file
BIN
autotests/read/qoi/1px.qoi
Normal file
Binary file not shown.
BIN
autotests/read/qoi/2px.png
Normal file
BIN
autotests/read/qoi/2px.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 561 B |
BIN
autotests/read/qoi/2px.qoi
Normal file
BIN
autotests/read/qoi/2px.qoi
Normal file
Binary file not shown.
BIN
autotests/read/qoi/bnm_rgb.png
Normal file
BIN
autotests/read/qoi/bnm_rgb.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
autotests/read/qoi/bnm_rgb.qoi
Normal file
BIN
autotests/read/qoi/bnm_rgb.qoi
Normal file
Binary file not shown.
BIN
autotests/read/qoi/bnm_rgba.png
Normal file
BIN
autotests/read/qoi/bnm_rgba.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
autotests/read/qoi/bnm_rgba.qoi
Normal file
BIN
autotests/read/qoi/bnm_rgba.qoi
Normal file
Binary file not shown.
Reference in New Issue
Block a user