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 tui/13181] New: Varargs reuse in tui_query_hook leads tosegfault


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

             Bug #: 13181
           Summary: Varargs reuse in tui_query_hook leads to segfault
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: tui
        AssignedTo: unassigned@sourceware.org
        ReportedBy: andersk@mit.edu
    Classification: Unclassified


In âgdb -tuiâ, pressing Enter repeatedly at the âQuit anyway? (y or n)â prompt
leads to garbage being printed and/or segfaults.  The problem is that va_list
argp in tui_query_hook is reused inside the loop.  The question should be
formatted once outside the loop.

This commit fixed the same problem in defaulted_query:
http://sourceware.org/ml/gdb-cvs/2006-10/msg00086.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]