Skip to content

Fix handling of truncated legacy errorpage %codes (#2411)#2412

Merged
kinkie merged 1 commit intosquid-cache:v7from
squidadm:v7-backport-pr2411
Apr 25, 2026
Merged

Fix handling of truncated legacy errorpage %codes (#2411)#2412
kinkie merged 1 commit intosquid-cache:v7from
squidadm:v7-backport-pr2411

Conversation

@squidadm
Copy link
Copy Markdown
Collaborator

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 9b312a1. 2010 commit 4d16918 significantly broadened the
kinds of use cases that can trigger this bug.

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 9b312a1. 2010 commit 4d16918 significantly broadened the
kinds of use cases that can trigger this bug.
@kinkie kinkie merged commit 8106adf into squid-cache:v7 Apr 25, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants