]> git.ipfire.org Git - thirdparty/squid.git/commit
Fix handling of truncated legacy errorpage %codes (#2411)
authorAlex Rousskov <rousskov@measurement-factory.com>
Wed, 22 Apr 2026 19:43:44 +0000 (19:43 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 23 Apr 2026 20:57:31 +0000 (20:57 +0000)
commitcbbe8d3fbb29fcbf7ddd50a67d6d066c98d4b35a
treeadf971a4bac9c9206401e62e350fba9f2c28999d
parentcb6ea8468ccaf70dafe90733fb2aac86334a28c1
Fix handling of truncated legacy errorpage %codes (#2411)

When build.input ends with a bare percent character, we must only
copy/consume that character and increment build.input by 1, not 2.

This overread bug existed since errorpage templates were introduced in
1997 commit 9b312a19. 2010 commit 4d16918e significantly broadened the
kinds of use cases that can trigger this bug.
src/errorpage.cc