overflow.
(grub_gdb_outbuf): Likewise.
+2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
+
+ * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
+ overflow.
+ (grub_gdb_outbuf): Likewise.
+
2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
* grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
#define GRUB_GDB_COMBUF_SIZE 400 /* At least sizeof(grub_gdb_regs)*2 are needed for
register packets. */
-static char grub_gdb_inbuf[GRUB_GDB_COMBUF_SIZE];
-static char grub_gdb_outbuf[GRUB_GDB_COMBUF_SIZE];
+static char grub_gdb_inbuf[GRUB_GDB_COMBUF_SIZE + 1];
+static char grub_gdb_outbuf[GRUB_GDB_COMBUF_SIZE + 1];
struct grub_serial_port *grub_gdb_port;