|
Home About Us A-Z Index Search * Contact Us Register Login Press ShopThe Open Brand -- Problem Reporting and Interpretations System |
Problem Report 2548 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 2548.
Report 2548 Actions
Problem Report Number 2548 Submitter's Classification Test Suite problem State Resolved Resolution Test Suite Deficiency (TSD) Problem Resolution ID TSD.X.1317 Raised 2009-08-17 22:40 Updated 2009-08-18 14:16 Published 2009-08-18 14:16 Product Standard Internationalised System Calls and Libraries Extended V3 (UNIX 03) Certification Program The Open Brand certification program Test Suite VSTH version 5.4.9 Test Identification PTHR.os/cfuncs/putchar_unlocked 2 Specification Base Definitions Issue 6 Linked Problem Reports 2545 Problem Summary Array overrun in /tset/PTHR.os/cfuncs/putchar_unlocked/T.putchar_unlocked Problem Text During the course of debugging the above error, it was discovered that
the output of
putc_unlocked was being written to file descriptor zero (stdout) instead
of the intended pipe.
When the tests execute putchar_unlocked_exectests, the write-end of the
pipe should be
passed as the ninth command line argument, but instead the empty string
("") is passed.
This empty string is interpreted by putchar_unlocked_exectests as zero,
resulting in the
output going to standard output.
From vsth/tset/PTHR.os/cfuncs/putchar_unlocked/putchar_unlocked.c:
1. void
2. t2_c1()
3. {
4. char *argv[4];
5. char ascii_fd0[20];
6. char ascii_fd1[20];
7.
8. argv[0] = execpath(TE_PATH);
9. argv[1] = "1";
10. argv[2] = strcpy(ascii_fd0, itoa(T2_fd[0]));
11. argv[3] = strcpy(ascii_fd1, itoa(T2_fd[1]));
12. argv[4] = NULL;
13.
14. (void) tet_exec(execpath(TE_PATH), argv, environ);
15.
16. exit(1);
17. }
Note that 'argv' is declared as an array of four elements (line 4), but
five elements are written
to it (line 12). On the Intel architecture, with GNU C compiler 4.2.1,
this results in an empty
string instead of the contents of ascii_fd1.Test Output /tset/PTHR.os/cfuncs/Mputchar_unlocked/T.putchar_unlocked 2
Unresolved
Test Description:
If the _POSIX_THREAD_SAFE_FUNCTIONS option is supported:
when stdio does not support positioning requests or stdio was
opened in append mode, then a call to putchar_unlocked(c) appends
the character specified by c, converted to an unsigned char, to
stdio and returns c if successful.
Posix Ref: Component PUTCHAR_UNLOCKED Assertion 9945-1:1996 8.2.7.2,
ANSI/ISO 9899-1990 7.9.7.9-2(C)
Test Information:
read unexpectedly failed, expected 65, got -1Review Information
Review Type TSMA Review Start Date 2009-08-17 22:40 Last Updated 2009-08-17 23:47 Completed 2009-08-17 23:47 Status Complete Review Recommendation Test Suite Deficiency (TSD) Review Response This is the same problem as reported in PR2545, but for
putchar_unlocked() instead of putc_unlocked().
Review Type SA Review Start Date 2009-08-17 22:47 Last Updated 2009-08-18 14:15 Completed 2009-08-18 14:15 Status Complete Review Resolution Test Suite Deficiency (TSD) Review Conclusion A test suite deficiency is granted.
Problem Reporting System Options:
- View Report 2548
- List All PRs
- Search Reports
- Email the System Administrator
- View the The Open Brand Interpretations Database User Manual
Contact the Certification Authority