|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1498 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 1498.
Report 1498 Actions
Problem Report Number 1498 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0780 Raised 1970-01-01 08:00 Updated 2003-03-13 08:00 Published 1995-08-08 08:00 Product Standard Internationalised System Calls and Libraries Extended (UNIX 95) Certification Program The Open Brand certification program Test Suite VSU version 4.0.2 Test Identification base/getwd 1-2 Problem Summary TSD4U.00033 tests may fail on implementations where PATH_MAX > _POSIX_PATH_MAX Problem Text
The tests listed above may fail on systems where _POSIX_PATH_MAX
is less than PATH_MAX.
The tests use _POSIX_PATH_MAX as the size of the char array
that the pathname will be returned in. The getwd XPG spec
states this array size should be PATH_MAX bytes to store the
longest possible pathname.
On our system PATH_MAX is 1023 and _POSIX_PATH_MAX is 255.
The array is to short and the tests write past the end of it.
This corrupts the stack and causes SIGILL failures similar to the
example output above for the listed tests.Test Output
520|1 1 44260 1 1|SPEC1170TESTSUITE CASE 1
520|1 1 44260 1 2|A successful call to char *getwd(char *path_name)
520|1 1 44260 1 3|shall place the absolute pathname of the current
520|1 1 44260 1 4|working directory of the calling process into the
520|1 1 44260 1 5|array pointed to by path_name and return a pointer to
520|1 1 44260 1 6|path_name.
520|1 1 45029 1 1|PREP: Save the current working directory
520|1 1 45029 1 2|PREP: Change the working directory to a known path: ../tmp
520|1 1 45029 1 3|TEST: call getwd()
520|1 1 45029 1 4|TEST: getwd returns a pointer to the current working directory
520|1 1 45029 1 5|TEST: getwd(path_name) places the absolute pathname of
520|1 1 45029 1 6| the current working directory in the array
520|1 1 45029 1 7| pointed to by path_name
520|1 1 45029 1 8|CLEANUP: return to the original directory
520|1 1 44260 2 1|ERROR: TEST TERMINATED DUE TO SIGILL SIGNAL (4)
220|1 1 1 11:55:40|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 1498
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority