]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 19 Mar 2012 09:59:16 +0000 (10:59 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 19 Mar 2012 09:59:16 +0000 (10:59 +0100)
overflow.
(grub_gdb_outbuf): Likewise.

ChangeLog
grub-core/gdb/cstub.c

index d688fe93a21d46e10d72b731dc58f8034fec9103..338522b788298404dda844b28226b0c58f697aba 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
index 551101de5945aa4f2d0052e2f2e4eb5f1bcaa134..a5c0c4316545b76ab899a1ef96dfd1fb3299bb6d 100644 (file)
@@ -28,8 +28,8 @@ int grub_gdb_regs[GRUB_MACHINE_NR_REGS];
 
 #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;