[Bug malloc/14483] New: obstack uses int for allocation sizes
jsm28 at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Thu Aug 16 22:23:00 GMT 2012
http://sourceware.org/bugzilla/show_bug.cgi?id=14483
Bug #: 14483
Summary: obstack uses int for allocation sizes
Product: glibc
Version: 2.16
Status: NEW
Severity: normal
Priority: P2
Component: malloc
AssignedTo: unassigned@sourceware.org
ReportedBy: jsm28@gcc.gnu.org
Classification: Unclassified
The obstack code uses int throughout as a type to store and return sizes of
memory allocations. It should use size_t to avoid arbitrary limits on the size
of objects (or incorrect returns in the case of obstack_memory_used).
I don't know offhand if fixing this will require new symbol versions for
obstack functions and a change to _GNU_OBSTACK_INTERFACE_VERSION.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list