OSDN Git Service

2000-10-23 Fernando Nasser <fnasser@redhat.com>
authorFernando Nasser <fnasser@redhat.com>
Wed, 29 Nov 2000 00:27:46 +0000 (00:27 +0000)
committerFernando Nasser <fnasser@redhat.com>
Wed, 29 Nov 2000 00:27:46 +0000 (00:27 +0000)
commitabce41c63bf9eade700519ecad97de00fab7719f
tree6c89679a537d51d3c8eb9cf9997d0b94cc7a5d77
parentdb567f41abd36b1af542b32775388bf6ab3f6731
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.
gdb/gdbtk/generic/ChangeLog
gdb/gdbtk/generic/gdbtk-cmds.c
gdb/gdbtk/generic/gdbtk-hooks.c
gdb/gdbtk/generic/gdbtk.c