[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: lesstiff bug triggered by grace and ddd programs



materer@chem.okstate.edu writes:

> xmgrace and ddd both fail on my AMD64 system.  It seems that the
> root of their failure is a pointer corruption in CascadeB.c and
> CascadeBG.c of Xm-2.1.  In both cases, the call to
> size_cascade(Widget w) corrupts w on return and triggers a
> fault in the calling routine.
>
> I believe the problem is in the call to XGetGeometry with the
> following XtDisplay(w), CB_CascadePixmap(w),(Window *)&dummy, &dummy,
> &dummy,&width, &height, (unsigned *)&dummy, (unsigned *)&dummy).
>
> dummy is an int.  However, Window is an unsigned long.
> Making a new varible dummyw of type Window fixes the problem.

>From the name and use I interfere that dummy is never used. Changing
it to long instead of int should have the same effect and save a
variable.

MfG
        Goswin

PS: Please send this to the BTS as bug against lesstiff



Reply to: