This is the mail archive of the
gdb-cvs@sources.redhat.com
mailing list for the GDB project.
src/gdb/gdbtk/generic ChangeLog gdbtk.c gdbtk- ...
- To: gdb-cvs at sourceware dot cygnus dot com
- Subject: src/gdb/gdbtk/generic ChangeLog gdbtk.c gdbtk- ...
- From: fnasser at sourceware dot cygnus dot com
- Date: 29 Nov 2000 00:27:46 -0000
CVSROOT: /cvs/src
Module name: src
Changes by: fnasser@sources.redhat.com 2000-11-28 16:27:46
Modified files:
gdb/gdbtk/generic: ChangeLog gdbtk.c gdbtk-cmds.c gdbtk-hooks.c
Log message:
2000-10-23 Fernando Nasser <fnasser@redhat.com>
From 2000-10-19 Steven Johnson <sbjohnson@ozemail.com.au>
Note: The original patch used asprintf/vasprintf. I changed it to
use the new xasprintf/xvasprintf gdb functions.
* gdbtk.c (TclDebug, gdbtk_init): Replaced the vast majority of
sprintf/vsprintf calls with asprintf and vasprintf respectively.
Should prevent any possible buffer overruns possible with
fixed size sprintf buffers. Specifically fixes a problem with long
filenames and clearing breakpoints overflowing their buffers when
using sprintf, causing a segfault. Generically should also prevent
any other similar problems from occuring.
* gdbtk-cmds.c (sprintf_append_element_to_obj, get_pc_register,
gdb_get_tracepoint_info, gdb_load_disassembly, gdbtk_load_source,
gdbtk_load_asm, gdb_set_bp, gdb_set_bp_addr, gdb_get_breakpoint_info,
gdb_selected_frame, gdb_selected_block, gdb_get_blocks): Ditto.
* gdbtk-hooks.c (gdbtk_warning, gdbtk_ignorable_warning,
gdbtk_readline_begin, gdbtk_set_hook, breakpoint_notify,
gdbtk_query, tracepoint_notify, gdbtk_error_begin,
gdbtk_annotate_signal): Ditto.
Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/generic/ChangeLog.diff?cvsroot=src&r1=1.12&r2=1.13
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/generic/gdbtk.c.diff?cvsroot=src&r1=1.7&r2=1.8
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/generic/gdbtk-cmds.c.diff?cvsroot=src&r1=1.12&r2=1.13
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/gdbtk/generic/gdbtk-hooks.c.diff?cvsroot=src&r1=1.7&r2=1.8