This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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 python/13331] New: (cpychecker) Segfault ingdb/python/py-function.c:convert_values_to_python under low memory conditions


http://sourceware.org/bugzilla/show_bug.cgi?id=13331

             Bug #: 13331
           Summary: (cpychecker) Segfault in
                    gdb/python/py-function.c:convert_values_to_python
                    under low memory conditions
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: dmalcolm@redhat.com
    Classification: Unclassified


Created attachment 6025
  --> http://sourceware.org/bugzilla/attachment.cgi?id=6025
HTML report showing the execution paths that can crash

convert_values_to_python doesn't check the return value from PyTuple_New, which
can return NULL under low memory conditions.

If it returns NULL and argc > 0 then there are two different segfaults
possible; see attached HTML.

-- 
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]