-
This bug is still present on 5.5. An attempt to write a file system abstraction layer (agent/mibgroup/hardware/fsys/) was started back in 2008 and I suppose one of the motivations was to fix this problem. Unfortunately that effort seems to be on hold for a while, so I wonder if anyone can see another way to fix or workaround this problem.
2010-01-05 14:01:44 UTC by lchiquitto
-
oops, 17861 is the SVN revision number with the fix, 17719 is the one which introduced the bug :)
2010-01-05 13:36:57 UTC by jsafranek
-
Thanks for the bug report!
We've fixed the problem in the 5.5.x code branch
and the main development tree, so it should be
fixed in future releases of the Net-SNMP package.
2010-01-05 13:34:05 UTC by jsafranek
-
I've already fixed it some time ago in SVN rev. 17719.
2010-01-05 13:34:05 UTC by jsafranek
-
I cannot reproduce this issue with any other Linux distro, so the Fedora Rawhide maintainers should have a look at this first. Please log this into the RedHat bugzilla and post the URL of the RedHat bugzilla entry here.
2010-01-04 16:39:16 UTC by bvassche
-
'.fc13' means it's Fedora Rawhide. And looking at snmpwalk output there, I get following values (each with different snmpwalk):
TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".22 = Gauge32: 2688009616
TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".22 = Gauge32: 147456
TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".22 = Gauge32: 49
TCP-MIB::tcpListenerProcess.ipv4."0.0.0.0".22 = Gauge32: 16384...
2010-01-04 16:09:54 UTC by jsafranek
-
I just had a look at source code file
net-snmp-5.4.2.1/agent/mibgroup/hardware/cpu/cpu_kstat.c,
around line 60 is code
state[sizeof(ctype)-1] = '\0';
but
char ctype[15], ftype[15], state[10];
so there is an index of 14 into an array of size 10. Suggest code rework.
A little later in the same file is the same problem again.
2009-12-31 12:06:49 UTC by dcb314
-
bvassche committed revision 17938 to the net-snmp SVN repository, changing 2 files.
2009-12-30 12:49:06 UTC by bvassche
-
bvassche committed revision 17937 to the net-snmp SVN repository, changing 2 files.
2009-12-30 11:48:56 UTC by bvassche
-
bvassche committed revision 17936 to the net-snmp SVN repository, changing 1 files.
2009-12-28 18:03:23 UTC by bvassche