This is a discussion on [PATCH] Fix segfault in tcpConnectionTable within the SNMP Coders forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --------------000304000603040804090905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--------------000304000603040804090905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello, Attached is a patch to fix a segfault that I was experiencing on x86_64 Linux host running net-snmp 5.3.0. The issue is that incorrect types are passed to netsnmp_hex_to_binary which are cast unsafely causing a buffer overflow. I think the patch is trivially correct, but if you want more details, please let me know. Cheers, scott. --------------000304000603040804090905 Content-Type: text/plain; name="net-snmp-5.3.0-tcpConn-64bit-patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="net-snmp-5.3.0-tcpConn-64bit-patch" --- agent/mibgroup/tcp-mib/data_access/tcpConn_linux.c 10 Dec 2005 16:35:37 -0000 1.5 +++ agent/mibgroup/tcp-mib/data_access/tcpConn_linux.c 16 Aug 2006 18:29:50 -0000 @@ -248,8 +248,8 @@ _load6(netsnmp_container *container, u_i */ while (fgets(line, sizeof(line), in)) { netsnmp_tcpconn_entry *entry; - int state, rc, local_port, remote_port, buf_len, offset, - tmp_state; + int state, rc, local_port, remote_port, tmp_state; + size_t buf_len, offset; u_char local_addr[48], remote_addr[48]; u_char *tmp_ptr; --------------000304000603040804090905 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642 --------------000304000603040804090905 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Net-snmp-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders --------------000304000603040804090905-- |