summaryrefslogtreecommitdiff
path: root/debian/patches/101_fix_buf_overflow
diff options
context:
space:
mode:
authorLuk Claes <luk@debian.org>2011-09-20 08:01:55 +0200
committerLuk Claes <luk@debian.org>2011-09-20 08:01:55 +0200
commitd98b020b3b3164ad13bbb9f5a672dd5679a7a828 (patch)
treef9fea673b63c7e2fa667641b2fc3df8b71862acb /debian/patches/101_fix_buf_overflow
parent410bf328786be508e4d03d4e95e31b1b6cc09c39 (diff)
Fix buffer overflow in tsol session.
Diffstat (limited to 'debian/patches/101_fix_buf_overflow')
-rw-r--r--debian/patches/101_fix_buf_overflow12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/patches/101_fix_buf_overflow b/debian/patches/101_fix_buf_overflow
new file mode 100644
index 0000000..56b2d89
--- /dev/null
+++ b/debian/patches/101_fix_buf_overflow
@@ -0,0 +1,12 @@
+diff -Naurp ipmitool-1.8.11.orig//lib/ipmi_tsol.c ipmitool-1.8.11//lib/ipmi_tsol.c
+--- ipmitool-1.8.11.orig//lib/ipmi_tsol.c 2009-02-25 15:38:52.000000000 -0500
++++ ipmitool-1.8.11//lib/ipmi_tsol.c 2010-09-08 09:10:24.611519035 -0400
+@@ -385,7 +385,7 @@ ipmi_tsol_main(struct ipmi_intf * intf,
+ socklen_t mylen;
+ char *recvip = NULL;
+ char out_buff[IPMI_BUF_SIZE * 8], in_buff[IPMI_BUF_SIZE];
+- char buff[IPMI_BUF_SIZE + 4];
++ char buff[IPMI_BUF_SIZE * 8 + 4];
+ int fd_socket, result, i;
+ int out_buff_fill, in_buff_fill;
+ int ip1, ip2, ip3, ip4;