Anonymous | Login | 2024-04-18 13:14 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0000557 | [1003.1(2008)/Issue 7] System Interfaces | Objection | Error | 2012-04-25 15:41 | 2019-06-10 08:55 | ||
Reporter | geoffclare | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
Name | Geoff Clare | ||||||
Organization | The Open Group | ||||||
User Reference | |||||||
Section | fprintf, fwprintf | ||||||
Page Number | 899, 979 | ||||||
Line Number | 30006, 32818 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0000557: f[w]printf EINVAL and undefined behaviour | ||||||
Description |
The descriptions of fprintf() and fwprintf() say "The results are undefined if there are insufficient arguments for the format." However, the ERRORS section on each of those pages also specifies a "may fail" EINVAL error for this condition. This is the same problem that many pthread functions used to have, and it was solved by removing the "may fail" errors and adding rationale recommending what implementations should do if they detect the error. |
||||||
Desired Action |
At page 899 line 30005 delete the lines: In addition, all forms of fprintf() may fail if: [EINVAL] There are insufficient arguments. At page 904 line 30225 change the RATIONALE section from: None to: If an implementation detects that there are insufficient arguments for the format, it is recommended that the function should fail and report an [EINVAL] error. At page 979 line 32817 delete the lines: In addition, all forms of fwprintf() may fail if: [EINVAL] There are insufficient arguments. At page 979 line 32838 change the RATIONALE section from: None to: If an implementation detects that there are insufficient arguments for the format, it is recommended that the function should fail and report an [EINVAL] error. |
||||||
Tags | tc2-2008 | ||||||
Attached Files | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |