Dan Espen <[EMAIL PROTECTED]> writes:
> 
> This is the  latest CVS.  The  test  didn't get  very far.  I  haven't
> looked at either problem yet.
> 
> Cannot parse color "On purpose"
> UMR: Uninitialized memory read:
>   * This is occurring while in:
>       _XcmsLookupColorName [cmsColNm.c]
>       _XcmsResolveColorString [cmsColNm.c]
>       XParseColor    [ParseCol.c]
>       GetSimpleColor [Picture.c:556]

I don't see anything wrong here, I suspect something in the Solaris
X library.

> ...
> 
> ### Sun May 13 15:42:09 EDT 2001: Test Resize ###
> COR: Fatal core dump:
>   * This is occurring while in:
>       .div           [rtlib.o]
>       DrawButton     [borders.c:421]

Both Purify and gcc seem to be confused about where the real problem
is.  "where" gave me one thing, and "list" gave me another.

The problem is in this code in Graphics.c:

    case S_GRADIENT:
      {
        register int w = t_width - 1;
        register int h = t_height - 1;
        register int t_scale = w * h;
        register int myncolors = ncolors * 2;
        for (i = 0; i <= w; i++) {
          register int pi = min(i, w - i) * h;
          for (j = 0; j <= h; j++) {
            register int pj = min(j, h - j) * w;
            XPutPixel(image, i, j,
                      pixels[(min(pi, pj) * myncolors - 1) / t_scale]);
          }
        }
      }

In this case, t_width = 1 and t_height = 18.
Since it subtracts 1 from t_width, it ends up with w=0.  Then t_scale
= 0.  Then the division dies.

The fix eludes me right now...did Sir Boris write this too, or just
the Y Gradient?

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214           E-mail: [EMAIL PROTECTED]
Piscataway, NJ 08854                     Phone: (732) 699-5570
--
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]

Reply via email to