Skip to content

WCCP: Fix offset calculation when parsing incoming packets - #2484

Open
squidadm wants to merge 1 commit into
squid-cache:v7from
squidadm:v7-backport-pr2480
Open

WCCP: Fix offset calculation when parsing incoming packets#2484
squidadm wants to merge 1 commit into
squid-cache:v7from
squidadm:v7-backport-pr2480

Conversation

@squidadm

Copy link
Copy Markdown
Collaborator

Since 2021 commit 464223c, WCCPv2 packet parsing code was using
wrong offsets due to a CheckFieldDataLength() bug:

  • wccp2_item_header_t and wccp2_capability_info_header_t: The
    function returned a wrong offset on any 64-bit build, shifting
    dataStart and the returned field size by 4 bytes and desynchronizing
    the parse of subsequent WCCPv2 packet items;
  • wccp2_capability_element_t: The function happened to return a
    correct offset only on platforms with 8-byte pointers.

This change is a reference point for automated CONTRIBUTORS updates.

…he#2480)

Since 2021 commit 464223c, WCCPv2 packet parsing code was using
wrong offsets due to a `CheckFieldDataLength()` bug:

* `wccp2_item_header_t` and `wccp2_capability_info_header_t`: The
  function returned a wrong offset on any 64-bit build, shifting
  dataStart and the returned field size by 4 bytes and desynchronizing
  the parse of subsequent WCCPv2 packet items;
* `wccp2_capability_element_t`: The function happened to return a
  correct offset only on platforms with 8-byte pointers.

This change is a reference point for automated CONTRIBUTORS updates.
@squid-anubis squid-anubis added the M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels label Aug 26, 2026
@squid-anubis

Copy link
Copy Markdown
Collaborator

Cannot create a git commit message from PR title and description.

Error while parsing future commit message title: the line is too long 74>72

Problematic parser input:

WCCP: Fix offset calculation when parsing incoming packets (#2480) (#2484)

Please see PR title and description formatting requirements for more details.

This message was added by Anubis bot. Anubis will add a new message if the error text changes. Anubis will remove M-failed-description label when there are no corresponding failures to report.

@kinkie kinkie changed the title WCCP: Fix offset calculation when parsing incoming packets (#2480) WCCP: Fix offset calculation when parsing incoming packets Aug 26, 2026
@squid-anubis squid-anubis removed the M-failed-description https://github.com/measurement-factory/anubis#pull-request-labels label Aug 26, 2026
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