diff options
author | Luk Claes <luk@debian.org> | 2011-09-20 08:01:55 +0200 |
---|---|---|
committer | Luk Claes <luk@debian.org> | 2011-09-20 08:01:55 +0200 |
commit | d98b020b3b3164ad13bbb9f5a672dd5679a7a828 (patch) | |
tree | f9fea673b63c7e2fa667641b2fc3df8b71862acb /debian/patches/101_fix_buf_overflow | |
parent | 410bf328786be508e4d03d4e95e31b1b6cc09c39 (diff) |
Fix buffer overflow in tsol session.
Diffstat (limited to 'debian/patches/101_fix_buf_overflow')
-rw-r--r-- | debian/patches/101_fix_buf_overflow | 12 |
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; |