File: 0100-fix_buf_overflow.patch

package info (click to toggle)
ipmitool 1.8.19-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,372 kB
  • sloc: ansic: 67,308; sh: 1,569; makefile: 208; xml: 32
file content (21 lines) | stat: -rw-r--r-- 851 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: fix buffer overflow
 based on 101_fix_buf_overflow from Leo Iannacone <l3on@ubuntu.com> 
Author: Jörg Frings-Fürst <debian@jff-webhosting.net>
Bug-ubuntu: https://bugs.launchpad.net/ubuntu/+source/ipmitool/+bug/633054
Forwarded: https://sourceforge.net/p/ipmitool/patches/100/
Last-Update: 2014-12-01
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
Index: trunk/lib/ipmi_tsol.c
===================================================================
--- trunk.orig/lib/ipmi_tsol.c
+++ trunk/lib/ipmi_tsol.c
@@ -374,7 +374,7 @@ ipmi_tsol_main(struct ipmi_intf *intf, i
 	char *recvip = NULL;
 	char in_buff[IPMI_BUF_SIZE];
 	char out_buff[IPMI_BUF_SIZE * 8];
-	char buff[IPMI_BUF_SIZE + 4];
+	char buff[IPMI_BUF_SIZE * 8 + 4];
 	int fd_socket, result, i;
 	size_t out_buff_fill, in_buff_fill;
 	int ip1, ip2, ip3, ip4;