This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug malloc/14483] New: obstack uses int for allocation sizes


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]