summaryrefslogtreecommitdiffstats
path: root/tests/imgPhoto.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2006-03-27 12:13:55 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2006-03-27 12:13:55 (GMT)
commit48f8897514dfdffe09f50cd9e1bbdacb6434a40d (patch)
tree352879db063311986533bfb6d6d50a3cde1fc25e /tests/imgPhoto.test
parent3f5bb1cb572e896aec5df11c69c79803556190e1 (diff)
downloadtk-48f8897514dfdffe09f50cd9e1bbdacb6434a40d.zip
tk-48f8897514dfdffe09f50cd9e1bbdacb6434a40d.tar.gz
tk-48f8897514dfdffe09f50cd9e1bbdacb6434a40d.tar.bz2
Fix (and add test for) [Bug 1458234]
Diffstat (limited to 'tests/imgPhoto.test')
-rw-r--r--tests/imgPhoto.test15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test
index b568477..341e82a 100644
--- a/tests/imgPhoto.test
+++ b/tests/imgPhoto.test
@@ -9,7 +9,7 @@
#
# Author: Paul Mackerras (paulus@cs.anu.edu.au)
#
-# RCS: @(#) $Id: imgPhoto.test,v 1.15.2.2 2004/02/17 20:40:41 dgp Exp $
+# RCS: @(#) $Id: imgPhoto.test,v 1.15.2.3 2006/03/27 12:13:56 dkf Exp $
package require tcltest 2.1
namespace import -force tcltest::configure
@@ -653,6 +653,19 @@ hciva9/Ovbv37+BzBgEEADs=
catch {file delete -force $filename}
set result
} 1
+test imgPhoto-14.2 {GIF -index handler buffer sizing} {
+ # Bug 1458234 makes this crash when trying to access buffers of the
+ # wrong size, caused when the initial frame is not the largest frame.
+ set data {
+ R0lGODlhIAAgAKEAAPkOSQsi7////////yH/C05FVFNDQVBFMi4wAwEAAAAh
+ +QQJMgAAACwGAAYAFAAUAAACEYyPqcvtD6OctNqLs968+68VACH5BAkyAAEA
+ LAMAAwAaABoAAAI0jH+gq+gfmFzQzUsr3gBybn1gIm5kaUaoubbuC8fyTNel
+ Ohv1CSO533u8KrgbUfc5Ci/EAgA7
+ }
+ set i [image create photo]
+ $i configure -data $data -format {gif -index 2}
+ image delete $i
+} {}
test imgPhoto-15.1 {photo images can fail to allocate memory gracefully} \
{nonPortable} {