This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug tui/13181] New: Varargs reuse in tui_query_hook leads tosegfault
- From: "andersk at mit dot edu" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Mon, 12 Sep 2011 18:29:19 +0000
- Subject: [Bug tui/13181] New: Varargs reuse in tui_query_hook leads tosegfault
- Auto-submitted: auto-generated
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.