Skip to content

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

Open
catalinv-ncc wants to merge 1 commit into
apache:masterfrom
catalinv-ncc:bug/Stack_Overflow_When_Malformed_CAN_Data_Is_Received_Minor_Fix
Open

drivers/can/ctucanfd_pci: Fix Malformed CAN Data (address off-by-one)#19164
catalinv-ncc wants to merge 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
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

2 participants