summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoroehhar <harald.oehlmann@elmicron.de>2019-03-04 18:36:36 (GMT)
committeroehhar <harald.oehlmann@elmicron.de>2019-03-04 18:36:36 (GMT)
commit9470b0e3ea0f2b6495852aa069a0e8b06d85d774 (patch)
tree321702493cdef0c9abb707c4298277a6b14a76c0 /tests
parentff204cc30af52bf00260514cc8998da8de614f5c (diff)
parent7ee00057db4a080edfaf39bc921f7eb58d64a459 (diff)
downloadtk-9470b0e3ea0f2b6495852aa069a0e8b06d85d774.zip
tk-9470b0e3ea0f2b6495852aa069a0e8b06d85d774.tar.gz
tk-9470b0e3ea0f2b6495852aa069a0e8b06d85d774.tar.bz2
gif read not complete on overflow image - information missinterpreted if following subimage is querried [4da2191b]
Diffstat (limited to 'tests')
-rw-r--r--tests/imgPhoto.test33
1 files changed, 33 insertions, 0 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test
index 97fb7ae..c45c5fb 100644
--- a/tests/imgPhoto.test
+++ b/tests/imgPhoto.test
@@ -1212,6 +1212,39 @@ test imgPhoto-14.5 {Bug [fbaed1f66b] - GIF decoder with deferred clear code} -se
image create photo -file $fileName -format "gif -index 2"
} -returnCodes error -result {no image data for this index}
+test imgPhoto-14.6 {Access Subimage after Subimage with buffer overflow. Ticket 4da2191b} -setup {
+ set data {
+ R0lGODlhYwA5APcAAAAAAIAAAACAAICAAAAAgIAAgACAgICAgAysnGy8hKzM
+ hASs3MTcjAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
+ AAAAAAAAAAAAAAA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EzXdNz1VbWvXn
+ uqldP1TAOrbshqBb314Y2W7n3Qdpv7UNPCHpycUVbv6dnODy5sqzQldIe8H0
+ hciva9/Ovbv37+BzBgE7ACH5BAFkAAMALAAAAAAEAAQAAAMEKLrckgA7
+ }
+} -body {
+ image create photo photo1 -data $data -format "GIF -index 1"
+} -cleanup {
+ catch {image delete photo1}
+} -result photo1
+
test imgPhoto-15.1 {photo images can fail to allocate memory gracefully} -constraints {
nonPortable
} -body {