This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug malloc/14483] New: obstack uses int for allocation sizes
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Thu, 16 Aug 2012 22:22:49 +0000
- Subject: [Bug malloc/14483] New: obstack uses int for allocation sizes
- Auto-submitted: auto-generated
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.