diff options
author | oehhar <harald.oehlmann@elmicron.de> | 2024-06-18 08:44:17 (GMT) |
---|---|---|
committer | oehhar <harald.oehlmann@elmicron.de> | 2024-06-18 08:44:17 (GMT) |
commit | dab36e26b1277cde6a97e5c6943a9b51fda5e28b (patch) | |
tree | 38a25026dc056ac73442defda8fa5c0b1bd7eaf9 /tests/imgPhoto.test | |
parent | 4e389557600c1aa77d7991114d9e9fcc5ba24d46 (diff) | |
parent | 648320ed4f7d776fd760786bfaaf996bb9c7ad01 (diff) | |
download | tk-dab36e26b1277cde6a97e5c6943a9b51fda5e28b.zip tk-dab36e26b1277cde6a97e5c6943a9b51fda5e28b.tar.gz tk-dab36e26b1277cde6a97e5c6943a9b51fda5e28b.tar.bz2 |
Merge 8.7
Diffstat (limited to 'tests/imgPhoto.test')
-rw-r--r-- | tests/imgPhoto.test | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test index 29e6b53..0a2cf7f 100644 --- a/tests/imgPhoto.test +++ b/tests/imgPhoto.test @@ -1938,6 +1938,23 @@ test imgPhoto-20.6 {Reject truncated GIF (file)} -setup { } -cleanup { catch {image delete gif1} } -returnCodes error -result {error reading color map} +test imgPhoto-20.6.1 {Reject truncated GIF in Colormap - ticket 865af0148c - file} -setup { + set fileName [file join [file dirname [info script]] corruptTruncatedColormap.gif] +} -body { + image create photo gif1 -file $fileName +} -cleanup { + catch {image delete gif1} +} -returnCodes error -result {GIF file truncated} +test imgPhoto-20.6.2 {Reject truncated GIF in Colormap - ticket 865af0148c - data} -setup { + set fileName [file join [file dirname [info script]] corruptTruncatedColormap.gif] + set h [open $fileName rb] + set d [read $h] + close $h +} -body { + image create photo gif1 -data $d +} -cleanup { + catch {image delete gif1} +} -returnCodes error -result {GIF file truncated} test imgPhoto-20.7 {Reject corrupted GIF (> 4Gb) (binary string)} -constraints { nonPortable } -setup { |