|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1750 Details
Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges
This page provides all information on Problem Report 1750.
Report 1750 Actions
Problem Report Number 1750 Submitter's Classification Minor System Fault State Resolved Resolution Rejected (REJ) Problem Resolution ID REJ.X.0533 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published null Product Standard Window System Application Interface V2 Certification Program The Open Brand certification program Test Suite VSW version 5.0.0 Test Identification vsw5/tset/Xt11/tcstflt 004 Problem Summary PG4W.00050 The submitter requests an MSF for an implementation that fails the test. Problem Text
This failure is due to a shortcoming in the sample implementation
provided by the X-Consortium.
Here is the code from X11R6.1p1 xc/lib/Xt/Converters.c
/*ARGSUSED*/
Boolean XtCvtStringToFloat(dpy, args, num_args, fromVal, toVal, closure_ret)
Display* dpy;
XrmValuePtr args;
Cardinal *num_args;
XrmValuePtr fromVal;
XrmValuePtr toVal;
XtPointer *closure_ret;
{
float f;
extern double atof();
if (*num_args != 0)
XtAppWarningMsg(XtDisplayToApplicationContext(dpy),
XtNwrongParameters,"cvtStringToFloat",XtCXtToolkitError,
"String to Float conversion needs no extra arguments",
(String *) NULL, (Cardinal *)NULL);
f = atof(fromVal->addr);
done(float, f);
}
As you can see, no checking is done to see if the conversion (atof)
actually succeeded or not.
Does X/Open have a policy regarding bugs in the Sample Implementation
as it comes from the X-Consortium?
Test Output
TEST CASE: XtCvtStringToFloat
TEST PURPOSE #4
Assertion XtCvtStringToFloat-4.(A)
If the implementation is X11R5 or later: A call to Boolean
XtCvtStringToFloat(display, args, num_args, from, to,
converter_data) when the conversion is not performed due to
an improper value specified in from shall issue a warning
message and return False.
PREP: Initialize toolkit, Open display and Create topLevel root widget
PREP: Create windows for widgets and map them
PREP: Get display
PREP: Set up required conversion args
TEST: Conversion fails
ERROR: Expected XtCvtStringToFloat return value of 0, Received 1
TEST: Warning handler is called
ERROR: Expected calls to warning handler count of 1, Received 0
4 FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We recommend this request be refused.
After consultation with X/Open, we believe this failure is significant
and may have substantial impact on applications.
In regards to X/Open's policy about sample implementation problems:
Implementations must conform to the spec in order to be branded -
no special provision exists for implementations derived from third
party sources.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Rejected (REJ) Review Conclusion
This request is refused.
Problem Reporting System Options:
- View Report 1750
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority