diff options
author | donal.k.fellows@manchester.ac.uk <dkf> | 2010-01-19 22:02:42 (GMT) |
---|---|---|
committer | donal.k.fellows@manchester.ac.uk <dkf> | 2010-01-19 22:02:42 (GMT) |
commit | e0a1717d836061163ddc11d3c0d006c419a5a27c (patch) | |
tree | 313f16de04d1f869c193750347eb6047316cb552 /tests/canvas.test | |
parent | 6f581934292ed22f8bdcde3272a23f73d3f6ad46 (diff) | |
download | tk-e0a1717d836061163ddc11d3c0d006c419a5a27c.zip tk-e0a1717d836061163ddc11d3c0d006c419a5a27c.tar.gz tk-e0a1717d836061163ddc11d3c0d006c419a5a27c.tar.bz2 |
[Bug 2931374]: Stop overflow of working buffer during construction of long
tag expressions.
Diffstat (limited to 'tests/canvas.test')
-rw-r--r-- | tests/canvas.test | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/canvas.test b/tests/canvas.test index 489ba27..f6a85fb 100644 --- a/tests/canvas.test +++ b/tests/canvas.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-2000 Ajuba Solutions. # All rights reserved. # -# RCS: @(#) $Id: canvas.test,v 1.23 2004/12/07 21:22:19 dgp Exp $ +# RCS: @(#) $Id: canvas.test,v 1.23.4.1 2010/01/19 22:02:43 dkf Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -367,6 +367,15 @@ test canvas-10.12 {multple events bound to same tag expr} -setup { .c bind {a && b} <Enter> {puts Enter} .c bind {a && b} <Leave> {puts Leave} } -result {} +test canvas-10.13 {more long tag searches; Bug 2931374} -setup { + catch {destroy .c} + canvas .c +} -body { + .c find withtag {(A&&B&&C&&D)&&area&&!text} + # memory errors on failure +} -cleanup { + destroy .c +} -result {} test canvas-11.1 {canvas poly fill check, bug 5783} -setup { destroy .c |