I found a couple UMRs in Scale.c when running under Purify. These should probably be initialized in the widget's initialize code.


[W] UMR: Uninitialized memory read in showValue {6 occurrences}
Reading 4 bytes from 0x0eef54b8 (4 bytes at 0x0eef54b8 uninitialized)
Address 0x0eef54b8 is 304 bytes into a 432 byte block at 0x0eef5388
Address 0x0eef54b8 points to a malloc'd block in heap 0x06bd0000
Thread ID: 0x148
Error location
showValue [scale.c:2007]
if (Scale_Orientation(w) == XmHORIZONTAL)
{
Scale_ShowValueX(w) = SCB_SliderX(sb) + (SCB_SliderWidth(sb) >> 1) -
=> (Scale_ShowValueWidth(w) / 2) + XtX(sb);


               Scale_ShowValueY(w) = XtY(sb) - Scale_ShowValueHeight(w);
               }

[W] UMR: Uninitialized memory read in XmScaleConvertScaleValueToSCBValue {6 occurrences}
Reading 4 bytes from 0x0eef54a8 (4 bytes at 0x0eef54a8 uninitialized)
Address 0x0eef54a8 is 288 bytes into a 432 byte block at 0x0eef5388
Address 0x0eef54a8 points to a malloc'd block in heap 0x06bd0000
Thread ID: 0x148
Error location
XmScaleConvertScaleValueToSCBValue [scale.c:2247]
DEBUGOUT(_LtDebug(__FILE__, w, "_XmScaleConvertScaleValueToSCBValue()\n"));
roundarg = (double)(Scale_Value(w) - Scale_Minimum(w))
* (double)(SCB_MAX - SCB_MIN - Scale_SliderSize(w))
=> / (double)(Scale_Maximum(w) - Scale_Minimum(w));
/* amai: is this the correct formula?
looks like the old one in _XmScaleConvertSCBValueToScaleValue() */
result = (int)(roundarg);


Reading 4 bytes from 0x0eef54b8 (4 bytes at 0x0eef54b8 uninitialized)
Address 0x0eef54b8 is 304 bytes into a 432 byte block at 0x0eef5388
Address 0x0eef54b8 points to a malloc'd block in heap 0x06bd0000
Thread ID: 0x148
Error location
showValue [scale.c:2007]
if (Scale_Orientation(w) == XmHORIZONTAL)
{
Scale_ShowValueX(w) = SCB_SliderX(sb) + (SCB_SliderWidth(sb) >> 1) -
=> (Scale_ShowValueWidth(w) / 2) + XtX(sb);


Scale_ShowValueY(w) = XtY(sb) - Scale_ShowValueHeight(w);
}




-- Dave Williss
------
Meddle not in the affairs of dragons,
  for you are crunchy and taste good with catsup



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Lesstif-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/lesstif-discuss

Reply via email to