Email List: Xaustin-group-lX
[All Lists]

Re: Defect in XSH strdup -- duplicate a string

To: yyyyyyyyyyyyyy@xxxxxxxxxxxxx
Subject: Re: Defect in XSH strdup -- duplicate a string
From: Andrew Josey <yyyyyy@xxxxxxxxxxxxxxxxx>
Date: Fri, 19 Sep 2003 17:33:23 +0100
References: <200309191634.RAA15693@xoneweb.opengroup.org>
The derivation shows it was introduced in XSH 4 Version 2,
as a UNIX extension, so we'd do best to hear from members of the
Base WG on this one....


On Sep 19,  5:34pm in "Defect in XSH strdup", yyyyyyyy@xxxxxxxxxx wrote:
>       Defect report from : Alexander Terekhov , IBM
> 
> (Please direct followup comments direct to yyyyyyyyyyyyyy@xxxxxxxxxxxxx)
> 
> @ page 1415 line 43742 section strdup -- duplicate a string editorial 
>{alt-strdup-2003-09-19}
> 
> Problem:
> 
> Edition of Specification (Year): 2003
> 
> Defect code :  1. Error
> 
> The standard says:
> 
> 43742 The strdup() function may fail if:
> 43743 [ENOMEM] Storage space available is insufficient.
> 
> "may" is wrong. Resource-not-available errors are mandatory.
> 
> Action:
> 
> Replace "may" with "shall".
> 
> Unfortunately, there are many other places that also need 
> similar patching. Consistency, you know. If you accept
> that change, more DRs will follow.
>-- End of excerpt from yyyyyyyy@xxxxxxxxxx


-----
Andrew Josey                                The Open Group  
Austin Group Chair                          Apex Plaza,Forbury Road,
Email: yyyyyyy@xxxxxxxxxxxxx                Reading,Berks.RG1 1AX,England
Tel:   +44 118 9508311 ext 2250             Fax: +44 118 9500110

<Prev in Thread] Current Thread [Next in Thread>
  • Re: Defect in XSH strdup -- duplicate a string, Andrew Josey <=