]> git.ipfire.org Git - thirdparty/squid.git/commit
Do not assert when debugging SNMP requests with long OIDs (#2150)
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 8 Sep 2025 06:40:02 +0000 (06:40 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Mon, 8 Sep 2025 06:40:12 +0000 (06:40 +0000)
commit97ddc09010276780b90d38061f68c32c59da7ade
tree162b93d0bcd89d25d59b122377bcd5069e793332
parentb550f9e532a8ce6e6c6001f87e1b404483fbc89c
Do not assert when debugging SNMP requests with long OIDs (#2150)

    FATAL: assertion failed: MemBuf.cc: "new_cap > (size_t) capacity"

Also fixes repeated same-buffer snmpDebugOid() calls that used to
accumulate stale content in snmpTreeNext():

    snmpTreeNext: Current : .1.3.6.1.4.1.3495
    snmpTreeNext: Next : .1.3.6.1.4.1.3495.1.3.6.1.4.1.3495.1.1.1.0

Current snmpDebugOid() callers have been checked for compatibility with
this fix. Fixing snmpDebugOid() API is out of this surgical fix scope.
src/snmp_core.cc