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
0000570 [1003.1(2008)/Issue 7] System Interfaces Objection Error 2012-05-28 16:34 2019-06-10 08:55
Reporter geoffclare View Status public  
Assigned To ajosey
Priority normal Resolution Accepted As Marked  
Status Closed  
Name Geoff Clare
Organization The Open Group
User Reference
Section getdelim
Page Number 1005
Line Number 33764
Interp Status Approved
Final Accepted Text Note: 0001245
Summary 0000570: getdelim() EOVERFLOW does not count the delimiter
Description The description of the getdelim() EOVERFLOW error is:

    More than {SSIZE_MAX} characters were read without encountering
    the delimiter character.

Of course it should say bytes, and this is also corrected in the
proposed change, but there is a problem in that if exactly {SSIZE_MAX}
bytes are read and then the delimiter is the next byte, this condition
is not met, but the return value would need to be {SSIZE_MAX}+1 because
it includes the delimiter.

The fix is not a simple matter of changing "{SSIZE_MAX}" to
"{SSIZE_MAX}-1" because the new text would then not be right for the
case where end-of-file is encountered after reading {SSIZE_MAX} bytes.
(It would require an error when the function could succeed.)
Desired Action Replace the EOVERFLOW description with:

    The number of bytes to be written into the buffer, including the
    delimiter character (if encountered), would exceed {SSIZE_MAX}.
Tags tc2-2008
Attached Files

- Relationships

-  Notes
(0001245)
msbrown (manager)
2012-05-31 15:37

Interpretation response
------------------------
The standard states the error in terms of characters, and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor.

Rationale:
-------------
We believe that the changes described here already match existing practice and describe what was originally intended.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------
Make the changes suggested in the Desired Action.
(0001286)
ajosey (manager)
2012-06-29 16:14

Interpretation proposed 29 June 2012 for final 45 day review
(0001349)
ajosey (manager)
2012-08-30 09:13

Interpretation approved 30 Aug 2012

- Issue History
Date Modified Username Field Change
2012-05-28 16:34 geoffclare New Issue
2012-05-28 16:34 geoffclare Status New => Under Review
2012-05-28 16:34 geoffclare Assigned To => ajosey
2012-05-28 16:34 geoffclare Name => Geoff Clare
2012-05-28 16:34 geoffclare Organization => The Open Group
2012-05-28 16:34 geoffclare Section => getdelim
2012-05-28 16:34 geoffclare Page Number => 1005
2012-05-28 16:34 geoffclare Line Number => 33764
2012-05-28 16:34 geoffclare Interp Status => ---
2012-05-31 15:35 msbrown Tag Attached: tc2-2008
2012-05-31 15:37 msbrown Interp Status --- => Pending
2012-05-31 15:37 msbrown Final Accepted Text => Note: 0001245
2012-05-31 15:37 msbrown Note Added: 0001245
2012-05-31 15:37 msbrown Status Under Review => Interpretation Required
2012-05-31 15:37 msbrown Resolution Open => Accepted As Marked
2012-06-29 16:14 ajosey Interp Status Pending => Proposed
2012-06-29 16:14 ajosey Note Added: 0001286
2012-08-30 09:13 ajosey Interp Status Proposed => Approved
2012-08-30 09:13 ajosey Note Added: 0001349
2019-06-10 08:55 agadmin Status Interpretation Required => Closed


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