HomeAbout Us A-Z IndexSearch * Contact Us Register LoginPress Shop

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1293 Details

Help Show help | Quick Search | Submit a Test Suite Support Request | Click here to view your privileges

This page provides all information on Problem Report 1293.


Report 1293 Actions


    Problem Report Number 1293
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0575
    Raised 1970-01-01 08:00
    Updated 2003-03-13 08:00
    Published 1998-07-14 08:00
    Product Standard Internationalised Terminal Interfaces
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.2
    Test Identification header/xcurses 579
    Problem Summary TSD4U.00243 This test may fail on implementations which provide a macro version of mvwinstr.
    Problem Text
    Here is the failing portion of the test code:

    static void test579A(void)
    {
    ...
    wchar_t *wstr;
    wchar_t wdata[2] = {(wchar_t)'a', 0};
    ...
    wstr = wdata;
    ...
    (void) mvwinwstr(ret1 = (arg1++, win), ret2 = (arg2++, y),
    ret3 = (arg3++, x), ret4 = (arg4++, wstr));
    ...
    }

    mvwinstr() here loads wstr with an uninitialized value from the screen. If that
    value doesn't fit in two characters, the buffer overflows and the result is
    undefined.

    The test should allot a larger buffer.
    Test Output

    200|193 2 21:13:54|TP Start
    520|193 2 6422 1 1|SPEC1170TESTSUITE CASE 579
    520|193 2 6422 1 2|If the macro int mvwinwstr(WINDOW *win, int y, int x,
    520|193 2 6422 1 3|wchar_t *wstr) is defined in curses.h it shall
    520|193 2 6422 1 4|evaluate each of its arguments exactly once, fully
    520|193 2 6422 1 5|protected by parentheses where necessary, protect its
    520|193 2 6422 1 6|return value with parentheses, and return a value of
    520|193 2 6422 1 7|the correct type.
    520|193 2 6423 1 1|PREP: Set test locale: xcurses
    520|193 2 6423 1 2|PREP: Set environment variables and open terminal connection
    520|193 2 6423 2 1|PREP: Call newterm
    520|193 2 6423 2 2|PREP: Initialize color pairs
    520|193 2 6423 2 3|TEST: Argument evaluation
    520|193 2 6423 2 4|ERROR: Argument 1 of mvwinwstr evaluated 32 times
    520|193 2 6423 2 5|ERROR: Argument 2 of mvwinwstr evaluated 32 times
    520|193 2 6423 2 6|ERROR: Argument 3 of mvwinwstr evaluated 32 times
    520|193 2 6423 2 7|ERROR: Argument 4 of mvwinwstr evaluated 32 times
    520|193 2 6423 2 8|TEST: Argument protection
    520|193 2 6423 2 9|TEST: Return protection
    520|193 2 6423 2 10|TEST: Return type
    520|193 2 6423 2 11|CLEANUP: Call endwin
    520|193 2 6423 2 12|CLEANUP: Call delscreen
    520|193 2 6423 2 13|CLEANUP: Restore environment variables and close terminal co
    nnection
    220|193 2 1 21:13:54|FAIL
    410|193 579 1 21:13:54|IC End

    Review 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 versions 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:

     

    Back   


Contact the Certification Authority