mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-09-05 01:09:34 +00:00
...
This commit is contained in:
parent
d894ac8c1d
commit
fb862c019b
1 changed files with 2 additions and 0 deletions
|
|
@ -511,6 +511,8 @@ class TestGraphics(BaseTest):
|
|||
# a 25-byte chunk previously caused a crash.
|
||||
res = pl(b'x' * 25, f=100)
|
||||
self.ae(res.partition(':')[0], 'EBADPNG')
|
||||
if Image is None:
|
||||
return
|
||||
# Test that a truncated PNG (valid header + IHDR declaring more rows
|
||||
# than the IDAT data can produce, with no trailing chunks) is rejected
|
||||
# cleanly instead of causing libpng to parse uninitialized memory. The
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue