|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1806 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 1806.
Report 1806 Actions
Problem Report Number 1806 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0883 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1997-10-29 08:00 Product Standard Window System Application Interface V2 Certification Program The Open Brand certification program Test Suite VSW version 5.0.0 Test Identification Xlib8/XFlushGC 2 Problem Summary TSD4W.00143 This test may fail on implementations because XGetGCValues() is called with a bad value. Problem Text
This test case [files tset/Xlib8/flushgc/flushgc.m] modifies an allocated GC
and checks it by calling the function svcFlushGC [line 405]. The check is done
in the function svcFlushGC within the lines 108 to 125:
if ((regr_args.l_flags.check) &&
(errflg == 0) &&
(stat_status == REGR_NORMAL))
{
GC good_defaults;
unsigned long value_mask;
XGCValues values;
value_mask = ( GCLineWidth | GCLineStyle
| GCCapStyle | GCJoinStyle ) ;
XGetGCValues(display, good_defaults,
value_mask, &values);
check_dec((long)0,
(long)values.line_width, "line_width");
check_dec((long)LineSolid,
(long)values.line_style, "line style");
}
XSync(display_arg, 0);
Within these lines of code the Xlib function XGetGCValues is called
with the GC parameter good_defaults. But good_defaults is a not initialised
variable just allocated on the stack. If XGetGCValues is called with
GC parameter set to gc_id instead, which is the GC passed to the function
svcFlushGC the created and modified GC is tested and the test passes without
error. From our point of view this a programming bug in the VSW5 test case.
Test Output
SECTION: Xlib8
TEST CASE: XFlushGC
TEST PURPOSE #2
Assertion XFlushGC-2.(A)
If the implementation is X11R5 or later: A call to XFlushGC
shall force cached GC changes to the server.
PREP: Create a window.
PREP: Create a GC
PREP: Modify the GC
TEST: XFlushGC forces cached GC changes to server
ERROR: Expected line_width of 0, received 1507348
ERROR: Expected line style of 0, received 6
FAILReview Information
Review Type TSMA Review Start Date null Completed null Status Complete Review Recommendation No Resolution Given Review Response
We agree this is a test suite deficiency in the test
suite version(s) listed.
Review Type SA Review Start Date null Completed null Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion
This is an agreed Test Suite Deficiency.
Problem Reporting System Options:
- View Report 1806
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority