On Thu, 10 Feb 2005, I wrote:
> Though the crash is in libbt so maybe it ought to be more careful
>
> getting a crash in
>
> bt::Image::hgradient (this=0xbffff3e0, [EMAIL PROTECTED], [EMAIL PROTECTED])
> at Image.cc:1269
> ...
> I see checks in other routines in that file for height > 2, does it need
> something similar here?
>
Oh I see I whinged about this back in August, I've now made the following
change to my copy of blackbox
--- lib/Image.cc 09 Feb 2005 13:31:25 +0000 1.53
+++ lib/Image.cc 10 Feb 2005 15:34:15 +0000
@@ -1265,6 +1265,7 @@
}
// rest of the gradient
+ if (height > 2) // otherwise total <= 0 (if it weren't unsigned!)
for (x = 0; x < total; ++x)
p[x] = data[x];
}
and that appears to fix it for me
Robert
--
Links and things http://rmstar.blogspot.com/
Robert Marshall
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
List archives: http://asgardsrealm.net/lurker/splash/index.html