mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-28 23:39:35 +08:00
PR gdb/13405:
* tui/tui-win.c (parse_scrolling_args): Don't write to possibly read-only memory.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2012-02-02 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
|
PR gdb/13405:
|
||||||
|
* tui/tui-win.c (parse_scrolling_args): Don't write to possibly
|
||||||
|
read-only memory.
|
||||||
|
|
||||||
2012-02-02 Tom Tromey <tromey@redhat.com>
|
2012-02-02 Tom Tromey <tromey@redhat.com>
|
||||||
|
|
||||||
PR gdb/9307:
|
PR gdb/9307:
|
||||||
|
@ -1583,13 +1583,16 @@ parse_scrolling_args (char *arg,
|
|||||||
;
|
;
|
||||||
|
|
||||||
if (*buf_ptr != (char) 0)
|
if (*buf_ptr != (char) 0)
|
||||||
wname = buf_ptr;
|
{
|
||||||
|
wname = buf_ptr;
|
||||||
|
|
||||||
|
/* Validate the window name. */
|
||||||
|
for (i = 0; i < strlen (wname); i++)
|
||||||
|
wname[i] = toupper (wname[i]);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
wname = "?";
|
wname = "?";
|
||||||
|
|
||||||
/* Validate the window name. */
|
|
||||||
for (i = 0; i < strlen (wname); i++)
|
|
||||||
wname[i] = toupper (wname[i]);
|
|
||||||
*win_to_scroll = tui_partial_win_by_name (wname);
|
*win_to_scroll = tui_partial_win_by_name (wname);
|
||||||
|
|
||||||
if (*win_to_scroll == (struct tui_win_info *) NULL
|
if (*win_to_scroll == (struct tui_win_info *) NULL
|
||||||
|
Reference in New Issue
Block a user