On Wed, Jun 27, 2001 at 06:49:47AM -0400, Brad Giaccio wrote: > Well I finally tracked down the problem with Fvwm Theme it was dumping > core on > *FvwmTheme: Colorset 3 fg #d7dde8, bg #43608e, CGradient 128 #979797 #596eb1 > while creating the gradient. > > Which brings me to you Dan: > 2001-05-14 Dan Espen <[EMAIL PROTECTED]> > > * libs/Graphics.c (CreateGradientPixmap): Avoid divide by zero errors > in S,C,Y Gradients with the help of a very smart horse. > > for it is here that it is crashing. Reverting the section for CGRADIENT > back to the way it was fixes my problem but may break whatever the change > was intended to fix. > > If you could give me some insight here it would be appreciated.
It crashes for me in this line: register double x = (double)((2 * i - t_width) * t_height) / 4.0; with i = 0 and t_width = 255. The problem is that i is an int while t_width is an unsigned int. The subtraction results in a very large number. This is used later to calculate an invalid array index which causes the crash. Bye Dominik ^_^ ^_^ -- Dominik Vogt, email: [EMAIL PROTECTED] LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20 -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]