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/17284] New: template_argument doesn't check for negative argno


https://sourceware.org/bugzilla/show_bug.cgi?id=17284

            Bug ID: 17284
           Summary: template_argument doesn't check for negative argno
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

py-type.c:typy_template_argument does not check for negative values of argno.

repro: take a binary built by py-template.exp, and do
(gdb) python print foo.type.template_argument(-1)
-> SEGV (or whatever)

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