raiden00pl opened a new pull request, #20938:
URL: https://github.com/apache/nuttx/pull/20938
## Summary
The character driver took the data length of every message from
can_dlc2bytes(), which with CONFIG_CAN_FD gives 12..64 bytes for DLC
9..15, also for classic frames. write() of such a classic message with
its 8 data bytes then returned 0 without sending it, and can_receive()
copied up to 64 bytes from the 8-byte data of a classic lower half.
Use the CAN FD length only when ch_edl is set and 8 bytes otherwise;
the DLC itself is kept. ctucanfd_pci, kvaser_pci and sim_canchar copy
8 bytes for these frames too.
## Impact
bugfix
## Testing
issue found with https://github.com/railab/nuttx-testlab
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]