CHANGES: snmpd: Added btrfs support to hrFSTable
Merge branch 'V5-5-patches' into V5-6-patches

* V5-5-patches:
  CHANGES: snmpd: Added btrfs support to hrFSTable
CHANGES: documentation: from "Eric S. Raymond": Correct man page markup problem
Ambiguous or invalid backslash.  This doesn't cause groff a problem.
but it confuses doclifter and may confuse older troff implementations.
Merge branch 'V5-4-patches' into V5-5-patches

* V5-4-patches:
  CHANGES: documentation: from "Eric S. Raymond": Correct man page markup problem Ambiguous or invalid backslash.  This doesn't cause groff a problem. but it confuses doclifter and may confuse older troff implementations.
Merge branch 'V5-5-patches' into V5-6-patches

* V5-5-patches:
  CHANGES: documentation: from "Eric S. Raymond": Correct man page markup problem Ambiguous or invalid backslash.  This doesn't cause groff a problem. but it confuses doclifter and may confuse older troff implementations.
Merge branch 'V5-6-patches' into V5-7-patches

* V5-6-patches:
  CHANGES: documentation: from "Eric S. Raymond": Correct man page markup problem Ambiguous or invalid backslash.  This doesn't cause groff a problem. but it confuses doclifter and may confuse older troff implementations.
CHANGES: snmptrapd: Fix a double free at exit

A quote from a message from Michael Shcwarcz:

I am running net-snmp 5.7.2 and it looks like there is a double
free problem in snmptrapd, in free_trapd_address() and
parse_trapd_address(). I get a SIGABORT on the second SIGHUP
(looks like it does a double free on the first SIGHUP and on
the second it crashes).

I have this snmptrapd.conf configuration:
  snmpTrapdAddr udp:162,udp6:162
  authCommunity log,execute,net public

And this is the back-trace from gdb:
*** glibc detected *** /opt/compass/bin/snmptrapd: free(): invalid next size (fast): 0x080c17a8 ***
======= Backtrace: =========
/lib/libc.so.6[0xf7204845]
/lib/libc.so.6(cfree+0x9c)[0xf72066ec]
/opt/compass/bin/snmptrapd(free_trapd_address+0x2a)[0x804a6ba]
/usr/lib/libnetsnmp.so.30(free_config+0x32)[0xf74ae4c2]
/opt/compass/bin/snmptrapd[0x804a557]
/opt/compass/bin/snmptrapd[0x804bfa9]
/lib/libc.so.6(__libc_start_main+0xe5)[0xf71b0455]

I have a patch that fixes this issue, here is the diff:
@@ -446,6 +446,7 @@ free_trapd_address(void)
{
     if (default_port != ddefault_port) {
        free(default_port);
+       default_port = ddefault_port;
     }
}
etherlike-mib, rmon-mib: Fix malloc(...) < 0 tests

Detected by Coverity. See also http://sourceforge.net/p/net-snmp/patches/1251/.
CHANGES: snmplib: Fix a bad free()

Detected by Coverity. See also http://sourceforge.net/p/net-snmp/patches/1251/.
CHANGES: snmplib: _insert_nsfile(): Check stat() return value

Detected by Coverity. See also http://sourceforge.net/p/net-snmp/patches/1251/.
ucd-snmp: find_device(): Remove an unused variable

Detected by Coverity. See also http://sourceforge.net/p/net-snmp/patches/1251/
hrSWInstalled table: Check stat() return value (1/2)

Detected by Coverity. See also http://sourceforge.net/p/net-snmp/patches/1251/.
hrSWInstalled table: Check stat() return value (2/2)

Detected by Coverity. See also http://sourceforge.net/p/net-snmp/patches/1251/.
CHANGES: snmplib: snmp_strcat(): Check *buf before using it

Detected by Coverity. See also http://sourceforge.net/p/net-snmp/patches/1251/.
snmplib: Simplify the code for deleting a request from the request list

The goal is (hopefully) that the new implementation does not confuse
Coverity anymore. See also http://sourceforge.net/p/net-snmp/patches/1251/.
snmplib: hex_to_binary2(): Return -1 if memory allocation fails
snmptrapd: Fix a double free in an error path

Detected by Coverity. See also http://sourceforge.net/p/net-snmp/patches/1251/.
CHANGES: HOST-RESOURCES-MIB, hrSWRun table: Parse /proc/<pid>/stat correctly on Linux

This issue was reported by Vincent Bernat <vincent.bernat@dailymotion.com>.
See also http://sourceforge.net/p/net-snmp/patches/1257/.
BUG: A2441: Correct comment
CHANGES: snmplib: Do not printf("%s", NULL) as that is undefined behaviour.