Subject: | RenderQueryFilters() one too many num_filt |
Date: | Sat, 30 Apr 2011 06:56:47 +1000 |
To: | bug-X11-Protocol [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
In X11::Protocol::Ext::RENDER I think RenderQueryFilters() tries to
unpack num_filt+1 many filter name strings, where it should be num_filt,
--- RENDER.pm.orig 2004-04-04 09:16:29.000000000 +1000
+++ RENDER.pm 2011-04-29 15:55:35.000000000 +1000
@@ -478,7 +478,7 @@
push @aliases, $alias;
}
$index += padding($index);
- for (0 .. $num_filt) {
+ for (1 .. $num_filt) {
my $len = unpack("C", substr($data, $index, 1));
$index++;
my $str = substr($data, $index, $len);