]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix off-by-one in helper args count assertion (#2212)
authorJoshua Rogers <MegaManSec@users.noreply.github.com>
Thu, 11 Sep 2025 13:27:27 +0000 (13:27 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 11 Sep 2025 13:27:32 +0000 (13:27 +0000)
commitbcfcb68d32d217966abcb2a2ced92287d0209b9c
tree90a5e7b5b32d746f9d8dcb173b8978a2d018ba04
parent0d9d22206334a424dec2d83f184f71647632fba3
Fix off-by-one in helper args count assertion (#2212)

The `nargs` value should now be pointing past both the
`HELPER_MAX_ARGS` and the additional terminator. i.e. outside
the valid array space. This is okay because it is an absolute
counter (1-based) not an offset (0-based) despite how it is
used to fill the array.
src/helper.cc