|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 1497 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 1497.
Report 1497 Actions
Problem Report Number 1497 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.0779 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/realpath 1-3, 5-7, 9, 11-13 Problem Summary TSD4U.00034 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 realpath will be returned in. The realpath 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 34131 1 1|SPEC1170TESTSUITE CASE 1
520|1 1 34131 1 2|A successful call to char *realpath(const
520|1 1 34131 1 3|char *file_name, char *resolved_name) shall derive
520|1 1 34131 1 4|from the pathname pointed to by file_name an absolute
520|1 1 34131 1 5|pathname that names the same file that does not
520|1 1 34131 1 6|involve ".", "..", or symbolic links, store the
520|1 1 34131 1 7|result in the buffer pointed to by resolved_name, and
520|1 1 34131 1 8|return a pointer to the resolved pathname.
520|1 1 23124 1 1|PREP: Create a regular file and a symbolic link to it
520|1 1 23124 1 2|TEST: realpath() derives absolute pathname that
520|1 1 23124 1 3| does not involve '.', '..' or a symbolic link
520|1 1 34131 2 1|ERROR: TEST TERMINATED DUE TO SIGILL SIGNAL (4)
220|1 1 1 11:23:57|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 1497
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority