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

The Open Brand -- Problem Reporting and Interpretations System


Problem Report 1543 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 1543.


Report 1543 Actions


    Problem Report Number 1543
    Submitter's Classification Test Suite problem
    State Resolved
    Resolution Test Suite Deficiency (TSD)
    Problem Resolution ID TSD.X.0825
    Raised 2000-08-25 08:00
    Updated 2003-03-13 08:00
    Published 2000-09-01 08:00
    Product Standard Internationalised System Calls and Libraries Extended V2 (UNIX 98)
    Certification Program The Open Brand certification program
    Test Suite VSU version 5.0.4
    Test Identification CAPIsockets/gethostbyname 9
    Problem Summary TSD4U.00286 The test fails because it does not copy the data in the gethostent() internal buffer before it is overwritten by gethostbyname()
    Problem Text
    This interpretation request is also for the corresponding test in VSU 5.1.1
    CAPI.os/sockets/ghostbynam/T.ghostbynam 9

    On page 189 of the XNS, there is the following statement:

    "APPLICATION USAGE

    The gethostent(), gethostbyaddr() and gethostbyname() functions may return
    pointers to static data, which may be overwritten by subsequent calls to any
    of these functions."


    So before doing any susequent call such as the gethostbyname() call in
    this case, the retval from gethostent() (exphost) points to must be saved.
    So it's necessary to add something like the following statement:

    alias = strdup(exphost->h_aliased[0]);

    Test Output
    SECTION: Sockets

    TEST CASE: gethostbyname

    TEST PURPOSE #9
    If the implementation supports the AF_INET
    communications domain:
    A successful call to struct hostent
    *gethostbyname(const char *name) when name is an alias
    for a valid host name shall return information about
    the host name to which the alias refers and include
    name in the list of aliases returned.
    PREP: Find a host with an alias
    TEST: gethostbyname returns host entry for an alias
    TEST: Verify returned data
    TEST: name is returned in the list of aliases
    ERROR: The alias was not found in the list of aliases
    Expected:
    Received:
    localhost
    9 FAIL

    Review Information

    Review Type TSMA Review
    Start Date null
    Completed null
    Status Complete
    Review Recommendation No Resolution Given
    Review Response
    This is accepted as a fault in the test suite.

    A TSD is recommended for the test suite version indicated in the VR
    field (VSU5.0.4). If a TSD for VSU5.1.1 is also required, then a
    separate interpretation request for that version needs to be submitted.

    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. Please note the consultants comment
    regarding test suite version.

    Problem Reporting System Options:

     

    Back   


Contact the Certification Authority