View Issue Details

IDProjectCategoryView StatusLast Update
00005601003.1(2008)/Issue 7System Interfacespublic2019-06-10 08:55
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted As Marked 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionstrlen, wcslen
Page Number2016, 2209
Line Number63891, 69562-69569
Interp Status---
Final Accepted TextSee 0000560:0001225
Summary0000560: Use of "string" for strnlen() and wcsnlen()
DescriptionThe DESCRIPTION of strnlen() is careful to refer the argument s as
an array so as not to require that s is null terminated. However,
there is still a use of "string" in the RETURN VALUE section.

The wcsnlen() description does not use "array" at all, but should.
Desired ActionOn page 2016 line 63891 section strlen change:

    The strnlen() function shall return an integer containing the
    smaller of either the length of the string pointed to by s or maxlen.

to:

    The strnlen() function shall return the number of bytes preceding
    the first null byte in the array to which s points, if s contains
    a null byte within the first maxlen bytes; otherwise, it shall
    return maxlen.

On page 2209 line 69562,69565 section wcslen change "string" to "array".

On page 2209 line 69568 section wcslen change:

    The wcsnlen() function shall return an integer containing the
    smaller of either the length of the wide-character string pointed
    to by ws or maxlen.

to:

    The wcsnlen() function shall return the number of wide characters
    preceding the first null wide character code in the array to which
    ws points, if ws contains a null wide character code within the
    first maxlen wide characters; otherwise, it shall return maxlen.
Tagstc2-2008

Activities

nick

2012-05-03 16:27

manager   bugnote:0001225

In addition to changes suggested, also change "the terminating NUL character" to "any terminating NUL character" on page 2016 line 63886.

Similarly on page 2209 line 69563 change "the terminating null wide-character code" to "any terminating null wide-character code".

Issue History

Date Modified Username Field Change
2012-04-27 14:21 geoffclare New Issue
2012-04-27 14:21 geoffclare Status New => Under Review
2012-04-27 14:21 geoffclare Assigned To => ajosey
2012-04-27 14:21 geoffclare Name => Geoff Clare
2012-04-27 14:21 geoffclare Organization => The Open Group
2012-04-27 14:21 geoffclare Section => strlen, wcslen
2012-04-27 14:21 geoffclare Page Number => 2016, 2209
2012-04-27 14:21 geoffclare Line Number => 63891, 69562-69569
2012-04-27 14:21 geoffclare Interp Status => ---
2012-05-03 16:17 nick Final Accepted Text => See Desired Action.
2012-05-03 16:17 nick Status Under Review => Resolved
2012-05-03 16:17 nick Resolution Open => Accepted
2012-05-03 16:17 nick Desired Action Updated
2012-05-03 16:17 nick Tag Attached: tc2-2008
2012-05-03 16:27 nick Note Added: 0001225
2012-05-03 16:27 nick Resolution Accepted => Accepted As Marked
2012-05-03 16:27 nick Final Accepted Text See Desired Action. => See 0000560:0001225
2019-06-10 08:55 agadmin Status Resolved => Closed