Skip to content

drivers/can/ctucanfd_pci: Fix Malformed CAN Data (address off-by-one)#19164

Merged
acassis merged 1 commit into
apache:masterfrom
catalinv-ncc:bug/Stack_Overflow_When_Malformed_CAN_Data_Is_Received_Minor_Fix
Jun 25, 2026
Merged

drivers/can/ctucanfd_pci: Fix Malformed CAN Data (address off-by-one)#19164
acassis merged 1 commit into
apache:masterfrom
catalinv-ncc:bug/Stack_Overflow_When_Malformed_CAN_Data_Is_Received_Minor_Fix

Conversation

@catalinv-ncc

Copy link
Copy Markdown
Contributor

drivers/can/ctucanfd_pci: Fix Malformed CAN Data (address off-by-one)

PR #19139 addresses the
issue, but there is one minor problem. In the for loop the element i+1
is written which means there can still be an overflow by one element
(uint32_t or 4 bytes).

Addressing here with this PR.

Tested locally, builds fine.

…one)

PR apache#19139 addresses the issue, but there
is one minor problem. In the for loop the element `i+1` is written which
means there can still be an overflow by one element (uint32_t or 4 bytes).

Addressing here with this PR.

Tested locally, builds fine.

Signed-off-by: Catalin Visinescu <catalin_visinescu@yahoo.com>
@github-actions github-actions Bot added Area: Drivers Drivers issues Size: XS The size of the change in this PR is very small labels Jun 17, 2026
@xiaoxiang781216 xiaoxiang781216 linked an issue Jun 17, 2026 that may be closed by this pull request
1 task
@catalinv-ncc

catalinv-ncc commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

Hi,

Can one more person approve this PR so that it can be merged?

I'd like to close the Issue, but it depends on this PR.

Thanks.

@catalinv-ncc

Copy link
Copy Markdown
Contributor Author

@raiden00pl

Hi Mateusz,

Can you please approve so that I can close the issue?

Thanks.

@acassis acassis merged commit b840bf6 into apache:master Jun 25, 2026
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Drivers Drivers issues Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Stack Overflow When Malformed CAN Data Is Received

3 participants