public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug malloc/14483] New: obstack uses int for allocation sizes
@ 2012-08-16 22:23 jsm28 at gcc dot gnu.org
  2013-01-09 16:52 ` [Bug malloc/14483] " schwab@linux-m68k.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2012-08-16 22:23 UTC (permalink / raw)
  To: glibc-bugs

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.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-04-24  7:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-16 22:23 [Bug malloc/14483] New: obstack uses int for allocation sizes jsm28 at gcc dot gnu.org
2013-01-09 16:52 ` [Bug malloc/14483] " schwab@linux-m68k.org
2013-10-20 21:08 ` neleai at seznam dot cz
2014-06-17 18:36 ` fweimer at redhat dot com
2014-06-25 10:49 ` fweimer at redhat dot com
2014-07-24  7:01 ` amodra at gmail dot com
2014-08-04 11:19 ` fweimer at redhat dot com
2014-12-10 13:02 ` amodra at gmail dot com
2024-04-24  7:04 ` amodra at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).