Austin Group Defect Tracker

Aardvark Mark IV


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

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2012-04-25 15:41 geoffclare New Issue
2012-04-25 15:41 geoffclare Status New => Under Review
2012-04-25 15:41 geoffclare Assigned To => ajosey
2012-04-25 15:41 geoffclare Name => Geoff Clare
2012-04-25 15:41 geoffclare Organization => The Open Group
2012-04-25 15:41 geoffclare Section => fprintf, fwprintf
2012-04-25 15:41 geoffclare Page Number => 899, 979
2012-04-25 15:41 geoffclare Line Number => 30006, 32818
2012-04-25 15:41 geoffclare Interp Status => ---
2012-05-10 15:33 nick Status Under Review => Resolved
2012-05-10 15:33 nick Resolution Open => Accepted
2012-05-10 15:33 nick Desired Action Updated
2012-05-10 15:33 nick Tag Attached: tc2-2008
2019-06-10 08:55 agadmin Status Resolved => Closed


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker