Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUFRSZ too small truncating arc sig #161

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nabbi
Copy link

@nabbi nabbi commented Nov 14, 2022

Senders using MS Exchange / Outlook / M365 cloud hosted mail chains many headers together

The ARC-Message-Signature body as truncating at 1024 resulting in incomplete ARC headers

 ...
 X-MS-Exchange-CrossTenant-originalarrivaltime:
 X-MS-Exchange-CrossTenant-fromentityheader:
 X-MS-Exchange-CrossTenant-id:
 X-MS-Exchange-CrossTenant-

Unclear which BUFRSZ capped so doubled them all.

Senders using MS Exchange / Outlook / M365 cloud hosted mail chains many
headers together

The ARC-Message-Signature body as truncating at 1024 resulting in
incomplete ARC headers

Unclear which BUFRSZ capped so doubled them all.
flowerysong pushed a commit to flowerysong/OpenARC that referenced this pull request Feb 6, 2024
Senders using MS Exchange / Outlook / M365 cloud hosted mail chains many
headers together

The ARC-Message-Signature body as truncating at 1024 resulting in
incomplete ARC headers

Unclear which BUFRSZ capped so doubled them all.

trusteddomainproject/OpenARC#161
@futatuki
Copy link

Even if the issue is resolved by applying this PR, I don't think the cause of the issue is the value of BUFRSZ, but the wrong size estimation of (a) specific buffer(s). There are other macros for specifying buffer size, ARC_MAXHEADER (in libopenarc/arc.h) and MAXBUFRSZ (in libopenarc/openarc-internal.h and openarc/openarc.h).

I guess at least this one should be ARC_MAXHEADER + 1.

futatuki added a commit to futatuki/OpenARC that referenced this pull request Sep 18, 2024
…ate-arc-set-headers

As ARC set header may grow up to ARC_MAXHEADER, the limit size per header size we determined to handle, buffer size to store should be larger than it.

With this commit, fix a size of the buffer to store header field body.

This would fix the problem described in PR trusteddomainproject#161

trusteddomainproject#180
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.

2 participants