# -*- text -*-

----------------------------------------------------------------------

Changes: V5.9.rc2 -> V5.9

commit f68a967f6f3aa999f906cd986ffb83f36d37e98b
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Fri Aug 14 14:31:32 2020 -0700

    v5-4 is no longer in release either

commit a93761876be67802598338bc92473d7df529b00e
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Fri Aug 14 14:31:16 2020 -0700

    remove release from dist/release

commit b7f01b1134c7a8ed578f8ab9ebecafc85ab2a757
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Fri Aug 14 14:30:46 2020 -0700

    Version number update: 5.9

commit b65b426f1a056b39286b57f8ad855c77e6dffe2e
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Thu Aug 6 14:07:23 2020 -0700

    changelog

----------------------------------------------------------------------

Changes: V5.8.1.rc1 -> V5.9.rc2

commit d8dc063e6c41b870b84430e92ab0f5183f014e22
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue Aug 4 17:21:16 2020 -0700

    autoconf

commit 7ba8a81fe24a60744ef7570f06c40de6cd4e4729
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue Aug 4 17:20:53 2020 -0700

    Fix variable check to include an x prefix for safety

commit bbd53ed4a42929d0c93645e069b466daa4f0fbce
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue Aug 4 17:20:43 2020 -0700

    network pcre detection

commit 8f371058e274f8a3cf1b293648b8eebc1086a2c9
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Tue Aug 4 17:20:07 2020 -0700

    fix libwrap reference not including previous value

commit bbd6adc7794d450910aded191c94836a12614da1
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Fri Jul 31 07:47:40 2020 -0700

    Version number update: 5.9.rc2

commit 2703c379582f17076e625606e9fbd63feb6533f4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Jul 24 08:35:44 2020 -0700

    EXTEND MIB: Fix two recently introduced compiler warnings
    
    See also commit 77f6c60f57db ("make the extend mib read-only by default").

----------------------------------------------------------------------

Changes: V5.8.1.pre2 -> V5.8.1.rc1

commit 0ee30b8ad6646c6bdd96ee67c82641ed50ce6519
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Thu Jul 23 17:05:50 2020 -0700

    Release Candidate for V5-8-patches

commit f2ce116c5ff3e6dddb4186905bb277c38025b047
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Thu Jul 23 17:05:47 2020 -0700

    Version number update: 5.8.1.rc1

commit 77f6c60f57dba0aaea5d8ef1dd94bcd0c8e6d205
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Thu Jul 23 16:17:27 2020 -0700

    make the extend mib read-only by default

commit 4097a311e952d3b5c12610102bb4cc2fe72b56e5
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Thu Jul 23 15:46:12 2020 -0700

    Revert "snmpd: Disable NET-SNMP-EXTEND-MIB support by default"
    
    This reverts commit c2b96ee744392243782094432f657ded4e985a07.

commit b13410f5b35fd281b9e93113aaa47f9f5c418974
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Jul 22 09:26:29 2020 -0700

    snmpd, snmptrapd: Disallow to change the user / group after it has been set
    
    This patch causes the -u and -g arguments to take precedence over the
    agentuser and agentgroup keywords.

commit 53922d2d8873c460d526b8bba9a285c5b98c9e1f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Jul 22 09:22:30 2020 -0700

    snmpd, snmptrapd: Introduce the netsnmp_set_agent_{user,group}_id() functions
    
    This patch does not change any functionality.

commit ba7740a2188184ce2beb36dd1e81b88ced390294
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Jul 21 07:36:43 2020 -0700

    snmpd, snmptrapd: Reduce code duplication
    
    Consolidate and rename the two copies of the functions that parse user
    and group IDs.

commit 42e97a741dbc71ce4ab2671fc057b8488638d3b8
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Thu Jul 16 08:01:44 2020 -0700

    Use more appropriate accept/block terminology

commit e772b8017d7e235437a45622bf8aa05f3ef3d084
Author: Robert Story <rstory@freesnmp.com>
Date:   Mon Jul 13 12:45:22 2020 -0400

    fix issue #99: read stored ifXTable config at startup

commit c2b96ee744392243782094432f657ded4e985a07
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Jul 11 09:42:55 2020 -0700

    snmpd: Disable NET-SNMP-EXTEND-MIB support by default
    
    Since it is possible to abuse this MIB for privilege escalation attacks,
    disable it by default. Notes:
    - It is still possible to enable this MIB via the --with-mib-modules
      configure option.
    - Another MIB that provides similar functionality, namely
      ucd-snmp/extensible, is disabled by default.
    - The security risk of ucd-snmp/pass and ucd-snmp/pass_persist is lower
      since these modules only introduce a security risk if the invoked
      scripts are exploitable.

commit 6fd7499ccaafdf244a74306972562b2091cb91b1
Author: fisabelle <fisabelle@broadsoft.com>
Date:   Thu Jul 9 15:49:35 2020 -0400

    Issue#147: Net-SNMP not responding when proxy requests times out

commit 5a464044f95339f979f6b2fdfa756a08d519b78e
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jul 5 14:09:56 2020 -0700

    Stop using config_arch_require()
    
    Stop using config_arch_require() since the effect of this macro is confusing.
    As an example, #define freebsd4 freebsd4 occurs in a header file that is
    included indirectly when building on FreeBSD 12. However, the following test
    in config_modules_agent does not recognize the expansion of freebsd4 into
    freebsd4:
    
        # target_os may have been changed to a #define of 1...
        if test "x$archtest" = "x1" -o "x$target_os" = "x$archtest" -o "x$PARTIALTARGETOS" = "x$archtest"; then

commit dec4eaa0626ef2447d41ea1af125809bfb86fbe8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jul 5 12:53:25 2020 -0700

    FreeBSD: Fix the sysctl() configure test
    
    This patch fixes the following compiler warnings:
    
    conftest.c:406:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
    main() {
    ^
    conftest.c:415:41: warning: incompatible pointer to integer conversion passing 'void *' to parameter of type 'size_t' (aka 'unsigned long') [-Wint-conversion]
      sysctl(mib, 2, &boottime, &len, NULL, NULL);
                                            ^~~~
    /usr/include/sys/_null.h:34:14: note: expanded from macro 'NULL'
                    ^~~~~~~~~~~
    /usr/include/sys/sysctl.h:1062:70: note: passing argument to parameter here
    int     sysctl(const int *, u_int, void *, size_t *, const void *, size_t);
                                                                             ^
    conftest.c:417:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
        exit(0);
        ^
    conftest.c:417:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
    3 warnings generated.

commit 72afad88ad58653687383b81b73299b5fdd6e8c4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Jul 4 14:30:58 2020 -0700

    ci/net-snmp-configure: Improve FreeBSD support
    
    Make freebsd_pkg_version() accept multiple package names. Rename
    the opensshver variable into libssh2ver.

commit 18edbbfa20689f5b4d38390b9be7006d98f67195
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Jul 3 18:44:44 2020 -0700

    ci: .travis.yml: Comment out Xcode 10.x

commit ec9667c508cec45fc1e8e87fbd3f3687161926a1
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Jul 3 14:49:17 2020 -0700

    ci/net-snmp-configure: Disable Python modules for Darwin 10 or older
    
    Building Python modules fails with older versions of Xcode, hence do not
    build Python modules for older versions of Xcode.

commit b3532cd6111eed67eaf83c540b05a175bc8f1fc1
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Jul 3 14:17:40 2020 -0700

    ci/net-snmp-configure: Only include snmp-usm-dh-objects-mib if openssl/dh.h is available

commit 9945a3c8928d9358c7d8c5b4e8ec7b6250835f13
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Fri Jul 3 15:46:48 2020 -0700

    minor wording fixes

commit c76c17abc03e5519ab75f2b7e951df40ae7a1ddd
Author: Wes Hardaker <opensource@hardakers.net>
Date:   Fri Jul 3 15:45:51 2020 -0700

    removed the way out of date thank you list, and referred to the git log

commit 1b54c6b895ba8311644427a958e43229853a853d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri Jul 3 10:05:44 2020 -0700

    ci: Reduce the number of combinations built by Travis

commit f01c45c53cdc931faf68fb33389928a29f1297f9
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Jun 30 16:53:05 2020 -0700

    Darwin: Unify system header files
    
    See also https://sourceforge.net/p/net-snmp/bugs/2504/ .

commit 9e892736ff0b04c5af5775d09155e392c76f7aae
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Jul 2 22:18:50 2020 +0200

    parse: remove a forgotten debug message

commit 51113450e8e653cf8261a8d09dc204a45c10b61a
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Jul 2 22:16:21 2020 +0200

    snmpwalk/snmpbulkwalk: flush stdout buffers before bailing out on stderr

commit 2e927ad46cce5eeaeb346d638e46d409e8220a79
Author: Niels Baggesen <nba@users.sourceforge.net>
Date:   Thu Jul 2 22:08:22 2020 +0200

    IANA updates for IANAifTypeMIB and IANA-ADDRESS-FAMILY-NUMBERS-MIB

commit 30238618812171bed934fe8fac629ad6ae22c75e
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Jul 2 11:18:00 2020 -0700

    testing: Skip tests T055 and T056 on OS/X
    
    These tests fail when building with Xcode 12, so skip these tests.

commit 043b61801987d70cb5aa01280950afde1d5b061e
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Jul 1 11:05:41 2020 -0700

    Darwin: Only include mibII/{ipAddr,var_route} if struct in_ifaddr is available
    
    This patch fixes the following build error for Xcode 12 and later:
    
    libtool: compile:  gcc -I../../include -I. -I../../agent -I../../agent/mibgroup -I../../snmplib -I/usr/local/opt/openssl@1.1/include -D_GNU_SOURCE -D_ALL_SOURCE -D_THREAD_SAFE -D__EXTENSIONS__ -DNETSNMP_ENABLE_IPV6 -fno-strict-aliasing -DNETSNMP_REMOVE_U64 -Udarwin19 -Ddarwin19=darwin19 -Wall -Wextra -Wstrict-prototypes -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -Wno-sign-compare -Wno-unused-parameter -Wno-type-limits -Wno-deprecated-declarations -c mibII/ipAddr.c  -fno-common -DPIC -o mibII/.libs/ipAddr.o
    1480mibII/ipAddr.c:206:29: error: variable has incomplete type 'struct in_ifaddr'
    1481    static struct in_ifaddr in_ifaddr, lowin_ifaddr;
    1482                            ^

commit af3e76ce47f84bc37f8a20718d4e63aa8491d0f4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Jul 1 19:31:41 2020 -0700

    ucd-snmp/extensible.h: Add config_require(ucd-snmp/pass)
    
    Since this module calls pass_compare(), add a dependency on ucd-snmp/pass.
    This patch fixes the following runtime error on Darwin:
    
    dyld: Symbol not found: _pass_compare
      Referenced from: /Users/travis/build/bvanassche/net-snmp/agent/.libs/libnetsnmpmibs.40.dylib
      Expected in: flat namespace
     in /Users/travis/build/bvanassche/net-snmp/agent/.libs/libnetsnmpmibs.40.dylib

commit ebf93f489b42bbeeebd7b3e3bb8726cb8175fa2e
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Jul 1 19:29:38 2020 -0700

    UCD-SNMP: Remove two superfluous casts

commit 9d123ce7407d8f46136bdbcab31205f95f997422
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Jul 1 10:24:22 2020 -0700

    ci/net-snmp-configure: Only build Python modules if Python3 is available

commit c06e6ce53f85746a414cd79b1a9c4e66cdc31bf8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Jun 30 19:15:49 2020 -0700

    Darwin: Detect <crt_externs.h>, _NSGetArgv() and _NSGetExecutablePath()

commit 300ae4c59c4e60eaf679af69f3e17150c8cbf5ce
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Jun 30 16:58:52 2020 -0700

    ci: Test more Darwin versions

commit 31a2c8065db102c876937ff64ee90c60b516d945
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Jun 29 12:35:02 2020 -0700

    libsnmp: Change several constants from unsigned char into unsigned int
    
    The C language requires that the operands of a bitwise or expression
    are promoted before the bitwise OR happens. From the C standard:
    "The following may be used in an expression wherever an int or unsigned int
    may be used:
    - An object or expression with an integer type (other than int or unsigned
      int) whose integer conversion rank is less than or equal to the rank of
      int and unsigned int.
    - A bit-field of type _Bool , int, signed int, or unsigned int.
    
    If an int can represent all values of the original type (as restricted by
    the width, for a bit-field), the value is converted to an int; otherwise,
    it is converted to an unsigned int. These are called the integer promotions.
    All other types are unchanged by the integer promotions."
    
    In other words, the result of a bitwise OR of two unsigned char operands
    has type 'int' instead of unsigned int. Hence change the type of constants
    in header files from unsigned char into unsigned int.
    
    See also https://github.com/net-snmp/net-snmp/issues/142.

commit 3df7a6ac1e0c652839446ebb53ff6f8cc14f7084
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Jun 29 12:41:31 2020 -0700

    agent/mibgroup/agentx/master_admin.c: Fix indentation
    
    This patch fixes the following clang compiler warning:
    
    mibgroup/agentx/master_admin.c:449:2: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
            if (pdu->contextName != NULL)
            ^
    mibgroup/agentx/master_admin.c:434:5: note: previous statement is here
        if (!var || snmp_oid_compare(var->name, var->name_length,
        ^

commit 9963ec1be6c595205773b4177b5931ca550b1f79
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jun 28 19:44:39 2020 -0700

    Introduce usm_build_user()
    
    This patch does not change any functionality.

commit 2abda404ae805b1c369b0e68a2e489b3996f0ba0
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jun 28 15:23:52 2020 -0700

    testing/fulltests/default/T0222snmpv3bulkget_simple: Remove the IF-MIB::ifEntry test

commit 24a8b092cce342d62a477394c60f572e49a90197
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun Jun 28 14:36:10 2020 -0700

    Add test T0222snmpv3bulkget_simple
    
    See also https://github.com/net-snmp/net-snmp/issues/141.

commit a0932b73ea0851308ca3e797caa600192cc3508a
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Jun 27 19:49:03 2020 -0700

    CHANGES: Bump libsnmp version from 35.0.1 to 40.0.0
    
    Several functions and one data structure have been removed from header
    file include/net-snmp/library/snmpusm.h. Hence bump the libsnmp version
    number. For the previous libsnmp version bump, see also 1b3ef39cb7a3
    ("version update for 5.8.1.pre1").

commit 576788a0a9400da517ddb8ceb33a742f552a1408
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Jun 25 20:57:05 2020 -0700

    libsnmp: Remove usm_clone_usmStateReference() from the public interface
    
    Since this function is only used inside the USM implementation, remove
    its declaration from the public interface.

commit 46f755fe4e6c2a919eebae0c55495f5f1207d06c
Author: Ramin Moussavi <lordrasmus@gmail.com>
Date:   Tue Jun 9 13:42:50 2020 +0200

    pingCtlTable: Move two more global variable definitions from .h to .c

commit 611149a879ef581454ffdd8637633197607750ff
Author: Jonas Bülow <jonas.bulow@gmail.com>
Date:   Mon Jun 1 10:09:53 2020 +0200

    libsnmp: Remove an obsolete keyword from a header file
    
    This allows compilation using C++17 where the register keyword is obsoleted.
    
    Also, the register keyword is in general never necessary.
    
    [ bvanassche: edited commit message ]

commit 327079a4ae20e2d4766fe549a6e4e57fbe947bcd
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue May 26 06:38:53 2020 -0700

    HOST-MIB, hr_filesys: Also monitor tmpfs
    
    See also https://sourceforge.net/p/net-snmp/feature-requests/165/,
    https://bugs.debian.org/685877 and
    https://gitlab.alpinelinux.org/alpine/aports/issues/932.
    
    Fixes: 2dfdd7cb73ec ("Better file system types") # v5.7
    Reported-by: Craig Small <csmall@dropbear.xyz>

commit 22e1371bb1fd4a502fc1065fb5aa6b6df8a6d0d2
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue May 26 07:19:07 2020 -0700

    HOST-MIB, hr_filesys: Convert recursion into iteration

commit 9238c0df6044f399f33e51c3bea89ee321b2882d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue May 26 07:34:51 2020 -0700

    HOST-MIB, fsys: Remove definitions that have been commented out

commit a3ef7905e83320f834ef335d121948d6e7d58ff8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 15 07:13:37 2020 -0700

    MIB-II: Declare local symbols static

commit 93a9f7f32612aa041e150b0d897ba3cdfda6e1db
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 15 07:10:20 2020 -0700

    MinGW64, MIB-II: Fix a linker error
    
    Fix the following linker error:
    
    ld.exe: ./.libs/libnetsnmpmibs.a(var_route.o):var_route.c:(.bss+0x8): multiple definition of `create_flag'; ./.libs/libnetsnmpmibs.a(at_iphlpapi.o):at_iphlpapi.c:(.bss+0x8): first defined here

commit 68a8dcd937ca9d69764f20e495b1723d818d12b7
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu May 14 20:28:53 2020 -0700

    ci/net-snmp-run-python-tests: Use Python3 interpreter

commit c01c5544bf02a139a3d103eead3c92378e75f737
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu May 14 20:26:28 2020 -0700

    python: Define PY_SSIZE_T_CLEAN
    
    See also https://docs.python.org/3/c-api/arg.html .

commit e4a4f0abca261bb62ea97c275223cf604b23288d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu May 14 19:28:43 2020 -0700

    python: Improve Python3 port
    
    See also https://github.com/net-snmp/net-snmp/issues/80.
    
    [ bvanassche: Removed commented out code and fixed compiler warnings ]

commit 6a8ede044a269f2c10a6463e96d03709bb974151
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 8 19:32:52 2020 -0700

    Python: Fix compiler warnings

commit 5de21610ff249d456c42530d0b8179bf1420a0e0
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 8 19:10:48 2020 -0700

    perl/SNMP/t/bulkwalk.t: Improve the reliability of this test
    
    Use ok($a, $b) instead of ok($a eq $b) to make error reporting more
    informative. Unbless $list[3] before iterating over it to make this
    test passs on DragonFly BSD. In the loop that looks for the loop
    network adapter, check whether the index of that adapter is numeric
    instead of comparing it with one.

commit 8bdae3bf48b3e80e148c2b20dc0f284119dc4548
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 8 21:41:52 2020 +0000

    perl/SNMP/t/bulkwalk.t: Make this test easier to debug

commit 57936ba304d18e6c23f31b242ff6d0a95e846c4f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Fri May 8 19:33:10 2020 -0700

    libsnmp: Declare the arguments of netsnmp_transport_create_config() const

commit 78beea8ef011702c026fdb3b32f118edcd2d6de4
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue May 5 08:25:55 2020 -0700

    configure: Do not use -Wl,-no-undefined if -fsanitize= has been specified
    
    Apparently these two compiler flags are incompatible. This patch should
    fix the following build failure:
    
    https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=22010

commit 2d6ccd92f16a0ea2cf03ff26bdbdc46f0c93e4f8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue May 5 07:49:58 2020 -0700

    configure: Ignore the krb5_config -flto=auto flag
    
    -flto=auto is incompatible with clang, hence ignore that compiler flag.

commit fd2f267370435996eca54be70525f592fec3f0d8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon May 4 17:32:30 2020 -0700

    libsnmp: Declare decode_keychange() input arguments const

commit 998a1686cbc202d2a5f3b4bc3933719cb13aaebd
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon May 4 15:11:59 2020 -0700

    snmpd: Fix a buffer overflow triggered by processing "getnext"
    
    This patch fixes the following Valgrind complaint:
    
    Invalid write of size 8
       at 0x4864DD4: netsnmp_scalar_helper_handler (scalar.c:225)
       by 0x4872008: netsnmp_call_handler (agent_handler.c:546)
       by 0x4872369: netsnmp_call_next_handler (agent_handler.c:660)
       by 0x48655B6: netsnmp_serialize_helper_handler (serialize.c:86)
       by 0x4872008: netsnmp_call_handler (agent_handler.c:546)
       by 0x487219C: netsnmp_call_handlers (agent_handler.c:631)
       by 0x4881D52: handle_var_requests (snmp_agent.c:3012)
       by 0x488245A: handle_getnext_loop (snmp_agent.c:3502)
       by 0x4882D97: handle_pdu (snmp_agent.c:3849)
       by 0x4882F03: netsnmp_handle_request (snmp_agent.c:3685)
       by 0x48835AB: handle_snmp_packet (snmp_agent.c:2294)
       by 0x4C53CA7: _sess_process_packet_handle_pdu (snmp_api.c:5809)
       by 0x4C5409F: _sess_process_packet (snmp_api.c:5858)
       by 0x4C5443C: _sess_read (snmp_api.c:6115)
       by 0x4C55009: snmp_sess_read2 (snmp_api.c:6387)
       by 0x4C55046: snmp_read2 (snmp_api.c:5907)
       by 0x403E43: receive (snmpd.c:1311)
       by 0x405765: main (snmpd.c:1089)
     Address 0x63a0908 is 0 bytes after a block of size 72 alloc'd
       at 0x483877F: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
       by 0x4C5002E: snmp_duplicate_objid (snmp_api.c:7844)
       by 0x4872992: netsnmp_handler_registration_dup (agent_handler.c:844)
       by 0x487575C: netsnmp_subtree_deepcopy (agent_registry.c:524)
       by 0x4875B61: netsnmp_subtree_split (agent_registry.c:660)
       by 0x487666F: netsnmp_subtree_load (agent_registry.c:940)
       by 0x48766A4: netsnmp_subtree_load (agent_registry.c:947)
       by 0x48766A4: netsnmp_subtree_load (agent_registry.c:947)
       by 0x48766A4: netsnmp_subtree_load (agent_registry.c:947)
       by 0x48770A4: netsnmp_register_mib (agent_registry.c:1214)
       by 0x4872655: netsnmp_register_handler (agent_handler.c:318)
       by 0x48656AB: netsnmp_register_serialize (serialize.c:56)
       by 0x4864F07: netsnmp_register_scalar (scalar.c:98)
       by 0x48712FC: netsnmp_register_watched_scalar2 (watcher.c:211)
       by 0x49822AC: _register_extend (extend.c:221)
       by 0x4982870: extend_parse_config (extend.c:576)
       by 0x4C65EAD: run_config_handler (read_config.c:541)
       by 0x4C66D19: read_config (read_config.c:960)
       by 0x4C67422: read_config_with_type_when (read_config.c:481)
       by 0x4C6770A: read_configs_optional (read_config.c:1018)
       by 0x4C6809D: read_configs (read_config.c:1049)
       by 0x4C55418: init_snmp (snmp_api.c:907)
       by 0x405013: main (snmpd.c:911)

commit 836cd352bb43f3e1483a0e4937c5f05f6eab1eb9
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon May 4 08:35:45 2020 -0700

    libsnmp, snmpd: Handle PDU cloning failures

commit 644a9aa6f4816f5739161c674b793a28d99f69c3
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon May 4 10:53:54 2020 -0700

    libsnmp: Declare USM input parameters const

commit a9219e3ecee5ce0cafdcbfaee50ac70ef290fc5b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon May 4 09:13:00 2020 -0700

    libsnmp: Declare the usm_get_user() arguments const

commit 7d27dd105f2633f4dfa3e3ee0a7689e5a5752b13
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon May 4 07:49:33 2020 -0700

    libsnmp, snmpd: Fix two potential buffer overflows
    
    Both bugs were introduced before 2001.
    
    See also https://github.com/net-snmp/net-snmp/issues/110 .

commit 6c4fe0e446d3da50ed5ca8bd79f8949f0b803ddd
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon May 4 07:45:56 2020 -0700

    libsnmp: Declare a build_oid_noalloc() input argument const

commit a5495798fa1e18f819a5e54f06deefe5fb798942
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun May 3 20:14:59 2020 -0700

    snmpd: Remove a dead assignment
    
    Additionally, remove an explicit \0-termination because snprintf() is
    required to do \0-termination (see also
    https://pubs.opengroup.org/onlinepubs/9699919799/functions/fprintf.html).
    
    This patch fixes the following Coverity complaint:
    CID 144418 (#1 of 1): Unused value (UNUSED_VALUE)
    assigned_pointer: Assigning value from cur + snprintf(cur, ep - cur, " %i %i \"%s\" %s %i %i", curr_struct->timeout, curr_struct->retryCount, curr_struct->tagListData, curr_struct->paramsData, curr_struct->storageType, curr_struct->rowStatus) to cur here, but that stored value is overwritten before it can be used.

commit 5ab2436f775bcd1de1ed86fd5a39d55b4f30ea4f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun May 3 19:52:23 2020 -0700

    agent/mibgroup/agent/extend.c: Remove dead code
    
    This patch fixes the following Coverity complaint:
    
    arith_non_null: The result of pointer arithmetic compatability_entries + idx is never null.
    dead_error_condition: The condition exten must be true.
    
    Fixes: 436bfa49439f ("Backwards-compatability implementation of the UCD-SNMP-MIB::extTable (if the ucd-snmp/extensible module isn't configured in).")

commit 559b8f5f9fdc66cf7612a31ff1a52825546f4f60
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun May 3 16:02:24 2020 -0700

    AIX: Also define aix4 on AIX5 and AIX6
    
    This patch allows to simplify the test defined(aix4) || defined(aix5) ||
    defined(aix6) into defined(aix4).

commit aebf5909df24692e1a03327ba2e49581a8574aa8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun May 3 16:23:44 2020 -0700

    configure: Improve the MIT crypto API check

commit fc7002ecced1329b62238f6278576b11846da173
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun May 3 14:26:17 2020 -0700

    AIX: Fix one build error and also a compiler warning
    
    n_name is a #define on AIX and hence using 'n_name' as a variable name
    triggers a compiler error.

commit ee7eed065f652ccfc58cade8aef5848073cce7bf
Author: Bart Van Assche <bart@localhost>
Date:   Sat May 2 17:21:41 2020 -0700

    kFreeBSD: Fix the build
    
    See also https://github.com/net-snmp/net-snmp/issues/103.

commit f44565fc195698e8b79fdd905c17217f0e493196
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sun May 3 11:21:10 2020 -0700

    Suppress recently introduced compiler warnings about close() not being declared

commit cb9b87d9b6e2b925065bf9cf700f9c44e5462d93
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat May 2 08:44:10 2020 -0700

    Always use -Wl,-no-undefined when linking a shared library
    
    Undefined symbols in a Net-SNMP shared library indicate a bug. Make sure
    that this is detected at link time instead of at run time.

commit 1fe4c024aa8e7d1e493039c3e1ca91dd06ffc5be
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat May 2 09:26:37 2020 -0700

    configure: Add -lkrb5 to LNETSNMPLIBS instead of LIBS
    
    Only the Net-SNMP library needs to be linked with the Kerberos libraries.
    Link with libk5crypto if necessary.

commit dfa82c4810b68181cb70fef07a7e8000beb98262
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat May 2 07:13:29 2020 -0700

    FreeBSD: Use the freebsd3 macro instead of __FreeBSD__
    
    Use the 'freebsd3' macro to guard code that is FreeBSD-specific. This will
    make it easier to fix the build for kFreeBSD. Note: the freebsd3 macro is
    defined if the FreeBSD version is >= 3.

commit 7c562f9b61397d8174b41c13244d2c69d729e13b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat May 2 08:24:40 2020 -0700

    perl/SNMP/t/notify.t: Make this test more robust

commit 15737583d5271f398a38b2f11f900fbd73a7025b
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat May 2 08:17:40 2020 -0700

    UCD-SNMP-MIB: Move an include directive and a few constants into proc.c

commit 05c6c29c2c458261605fee8d3a8d59c97bba2878
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat May 2 08:10:29 2020 -0700

    ci/net-snmp-configure: Build without MySQL support

commit ca585bbbae9e4831a6e622bfb9356689187bea70
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 30 07:38:35 2020 -0700

    ci/net-snmp-run-tests: Fix the test that verifies whether Perl modules have been enabled

commit b323fe9f83ff070244f00363d5493b9528e4300d
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 30 10:09:07 2020 -0700

    perl/SNMP/t/bulkwalk.t: Improve the robustness of this test
    
    Instead of only examining the network interface that occurs first in the
    interfaces table, examine all network interfaces.

commit d589ab4eab9aa5f21290ae9e20fb4f8d0c75f105
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 30 17:01:20 2020 -0700

    perl/TrapReceiver/t/1.t: Use ok() instead of print()

commit 93c22da673e88a72d59e1d6e66a8d4836f9c6828
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 30 11:52:16 2020 -0700

    perl/ASN/test.pl: Convert to the Perl Test framework

commit 6c9f36b09b8a6486eb09f7496e5a73df18905a2f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Apr 27 17:14:58 2020 -0700

    perl/MakefileSubs.pm: Define the MinGW compiler flags correctly

commit e227abee97c3d43c53e5082c94892fc904780ffd
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 30 07:17:30 2020 -0700

    perl/MakefileSubs.pm: Remove -Iinclude/net-snmp from the Windows flags
    
    Remove include/net-snmp from the include path because it is not used.

commit 9f176cbee62338b2fb19de6165c4ae4f8799c822
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 30 07:20:10 2020 -0700

    agent/snmp_perl.c: Remove an obsolete definition
    
    _WIN32_WINNT is either defined by the configure script (MinGW, Cygwin) or
    by win32/Configure (MSVC).

commit bbd745acaf022524b9ae686953ea010d98c68ec5
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Thu Apr 30 08:02:39 2020 -0700

    configure: Simplify the size_t format specifier check
    
    Assume that Unix compilers are ANSI C compliant and use the 'z' format
    specifier on Unix. Only check for the underlying type of size_t on
    MinGW. Remove the unused NETSNMP_PRI32 format specifier.

commit 108cce420ee10857d0d9407f0f5b45b6e7c0fc48
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 18:36:45 2020 -0700

    ci/build.bat: Check whether make perl_test succeeded for the MSVC build

commit 93fe38cf5f7cdf339df48d94caff140c91e50ac7
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 14:35:34 2020 -0700

    perl/SNMP/Makefile.PL: Simplify GetTestInfo()

commit 50eeb76544810cf8fbcde94a2696519ba3e8acf3
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 12:01:36 2020 -0700

    perl/SNMP/t/dump-session.t: Call snmptest_cleanup() after the test has finished

commit e69984355cfd0d4bedd4077367f3a3c89de72109
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 11:04:22 2020 -0700

    perl/SNMP/t/startagent.pl: Improve kill_by_pid_file robustness

commit 905ab798cf6a419bafa68d29f6b262a21d3a382f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 12:13:10 2020 -0700

    perl/SNMP/t/startagent.pl: Make starting processes faster

commit e2349372287809b518dc76e16b4e0602dffeca21
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 09:51:04 2020 -0700

    perl/default_store/test.pl: Convert to the Perl Test framework

commit 498b243e35d105d72ee205e42d17fd4505f99b25
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 10:51:20 2020 -0700

    Perl tests: Use $mibdir instead of ../../mibs

commit b16a0e0d917bf2cbd32e5dc95b73d7e5407533a9
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 15:18:44 2020 -0700

    perl/SNMP/t/startagent.pl: Split this Perl script

commit f253df86c4560d762cc22f8234cd879d9b143b1e
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 08:20:38 2020 -0700

    Perl tests: Enable 'use strict' and 'use warnings'

commit 917b0f281c31ab152528e6dc4e5c2ab5027d5353
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 09:53:24 2020 -0700

    Perl tests: do not modify @INC

commit dc43e75282c7b5de51463964571e5f6b633c582f
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 12:50:30 2020 -0700

    ci/perl.bat: Suppress two uninteresting Visual Studio compiler warnings

commit bc2a9a7fedf8a99073a4e5cb4872124101abd3d8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 10:24:41 2020 -0700

    win32/Makefile.in: Tell the Perl DynaLoader where to find netsnmp.dll

commit 5bacc9af2baa5a5a02b0e3ffc6abf963adff6a71
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 13:30:38 2020 -0700

    snmpd: Do not open /dev/kmem on Linux even if libelf-devel has been installed
    
    See also f1647e3db242 ("snmpd: Do not open /dev/kmem on Linux")

commit 59e8b5b28db8bed05d68c4d508a89932437e9cb6
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 11:46:50 2020 -0700

    snmpd: Make init_kmem() report "success" if /dev/kmem is not opened
    
    Fixes: f1647e3db242 ("snmpd: Do not open /dev/kmem on Linux")

commit 595751cdf7b74083631b2ffd335be45f0b691a88
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Wed Apr 29 07:38:50 2020 -0700

    ci/build.bat: Unbreak the MSVCSTATIC64 build
    
    This patch fixes the following error that is triggered by the win32/Configure script:
    
    Can't locate ExtUtils/Embed.pm in @INC (you may need to install the ExtUtils::Embed module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl) at Configure line 9.

commit d84f0c6e160951318a35e72fe76ef2e0ffd91044
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 28 20:42:46 2020 -0700

    Windows, MSVC: Fix Perl module compilation
    
    This patch fixes the following error message:
    
    default_store.c: loadable library and perl binaries are mismatched (got handshake key 0000000010500080, needed 0000000010A00080)
    
    See also https://github.com/net-snmp/net-snmp/issues/104.

commit 42aa220a7d3d686eb91bfd354c9b5094afbe6d97
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 28 15:55:59 2020 -0700

    ci/build.bat, MSVC: Run Perl tests

commit a4a8a70dbef581a30c3ba814de39b514f76072f8
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 28 15:40:59 2020 -0700

    Perl: Use $Config{path_sep} instead of ';' for Windows

commit 4990ca1af1d16a3e3144d455cb1e41108f00b691
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 28 14:50:44 2020 -0700

    win32/Makefile.in: Set PERL5LIB before running tests
    
    This is necessary to let the Perl interpreter find the Net-SNMP Perl modules.

commit 0e33f5025a483e4d724b6e417e8ef6b0788819e9
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 28 18:14:17 2020 -0700

    testing/RUNFULLTESTS: Fix the --with-perl-modules test

commit e621ae3038c82f92666c37da9c0e2ceb09df93f0
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 28 13:58:30 2020 -0700

    testing/RUNFULLTESTS: Fix PERL5LIB
    
    Fixes 5a86cfb005db ("testing: Unbreak RUNFULLTESTS").

commit 61822884421eae193ca9fd1f55da488000480789
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 28 13:53:12 2020 -0700

    ci/build.bat: Fix a comment

commit 467c5ee95ba804275e719a4848d2d46f18a9eee1
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Sat Apr 25 15:54:06 2020 -0700

    ci, .appveyor.yml: Switch to Visual Studio 2019 image

commit f7ae854c12c35c2561979873e53d217da688e809
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 28 13:09:14 2020 -0700

    win32/dist/build-binary.pl: Remove the dependency on File::Which
    
    File::Which is a CPAN module and hence is not present in the core Perl
    distribution.
    
    Fixes: ed630cf540f6 ("win32/dist/build-binary.pl: Search %PATH% for tar.exe and gzip.exe")

commit 4f61570bca1d765bfdb11c6010c887cbe3176f29
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Tue Apr 28 13:33:44 2020 -0700

    ci/build.sh: Install MSYS Perl MakeMaker and Test-Harness

commit 62fb93df0641b4beed3db28d594ca1f87ec63b0c
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Apr 27 21:50:53 2020 -0700

    ci/AppVeyor: Reduce build time
    
    Only download and build Perl when building with the Visual Studio
    compiler and for dynamic builds. Otherwise use the Perl interpreter that
    is included with the development environment (MinGW or Cygwin).

commit 8df783a81996f03e2927fe0f56182ab0250e317e
Author: Bart Van Assche <bvanassche@acm.org>
Date:   Mon Apr 27 13:06:09 2020 -0700

