View Issue Details

IDProjectCategoryView StatusLast Update
00005881003.1(2008)/Issue 7System Interfacespublic2019-06-10 08:55
Reportergeoffclare Assigned Toajosey  
PrioritynormalSeverityObjectionTypeOmission
Status ClosedResolutionAccepted 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectionopen_memstream
Page Number1388
Line Number45564
Interp Status---
Final Accepted Text
Summary0000588: Use of free() on buffer allocated by open_[w]memstream()
DescriptionThe APPLICATION USAGE section on the open_memstream() page says:

    The buffer created by these functions should be freed by the
    application after closing the stream, by means of a call to free().

However, there is nothing in normative text which requires
implementations to allow this buffer to be passed to free().
Desired ActionAdd a new paragraph to the end of the DESCRIPTION:

    After a successful fclose(), the pointer referenced by bufp can be
    passed to free().
Tagstc2-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2012-06-25 16:00 geoffclare New Issue
2012-06-25 16:00 geoffclare Status New => Under Review
2012-06-25 16:00 geoffclare Assigned To => ajosey
2012-06-25 16:00 geoffclare Name => Geoff Clare
2012-06-25 16:00 geoffclare Organization => The Open Group
2012-06-25 16:00 geoffclare Section => open_memstream
2012-06-25 16:00 geoffclare Page Number => 1388
2012-06-25 16:00 geoffclare Line Number => 45564
2012-06-25 16:00 geoffclare Interp Status => ---
2012-06-28 16:28 Don Cragun Status Under Review => Resolved
2012-06-28 16:28 Don Cragun Resolution Open => Accepted
2012-06-28 16:28 Don Cragun Tag Attached: tc2-2008
2019-06-10 08:55 agadmin Status Resolved => Closed