|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1544 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 1544.
Report 1544 Actions
Problem Report Number 1544 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0826 Raised 2000-08-27 08:00 Updated 2003-03-13 08:00 Published 2000-09-18 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.1.1 Test Identification CAPI.os/sockets/ghostbynam 9 Problem Summary TSD4U.00287 The test fails because it does not copy the data in the gethostent() internal buffer before it is overwritten by gethostbyname() Problem Text
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 subsequent 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
************************************************************************
/tset/CAPI.os/sockets/ghostbynam/T.ghostbynam 9 Failed
Test Description:
Base Conditional Conformance
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.
Test Information:
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
************************************************************************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.
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 1544
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority