Anonymous | Login | 2024-03-28 21:26 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 | ||
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 | |||||||
|
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 |