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

Defect in XSH fmemopen

To: austin-review-l@xxxxxxxxxxxxx
Subject: Defect in XSH fmemopen
From: nick@xxxxxxxxxx
Date: Thu, 4 Jun 2009 02:48:30 +0100 (BST)
        Defect report from : Nick Stoughton , USENIX Association

(Please direct followup comments direct to austin-group-l@opengroup.org)

@ page 866 line 28754 section fmemopen comment {NMS-24731-2-align}

Problem:

Edition of Specification (Year): 2008

Defect code :  3. Clarification required

During the process of balloting the C language Technical Report on 
dynamic memory functions (TR 24731-2) a comment was recevied from Canada:

“Because this feature is only useful when the stream is
opened for reading or updating" says that the feature is
useful for reading. Given the buffer contents are not
defined at that point, we need an example where reading
would be useful (Ex. A bad random number generator
seed).

They also pointed out:
"fmemopen call may fail if the mode argument does not
include a +" contradicts the reading aspect of the
“Because this feature is only useful when the stream is
opened for reading or updating" statement given “+”
means update.

They further suggested changing the text:

“Because this feature is only useful when the
stream is opened for updating"

The C committee is proposing to accept this change, but want to know if 
this should then be marked as a POSIX extension in some way (just as
POSIX uses CX shading).


Action:

Change 
“Because this feature is only useful when the stream is opened
for reading or updating" 

to 

“Because this feature is only useful when
the stream is opened for updating"

<Prev in Thread] Current Thread [Next in Thread>