Seeed-Studio / Seeed_Arduino_CAN

Seeed Arduino CAN-BUS library - MCP2518FD&MCP2515&MCP2551
MIT License
826 stars 440 forks source link

padding bytes in mcp2518fd_TransmitChannelLoad method is written into wrong locations #128

Open AntDeM opened 2 years ago

AntDeM commented 2 years ago

Padding bytes added to write a multiple of 4 bytes into RAM is written to wrong location because the offset of 8 is added two times:

The worst case is when txdNumBytes is greater than 56. In this case txBuffer is written out of bounds.

Pillar1989 commented 2 years ago

@thePapero welcome to send PR to us. we hope your name appears in the code commit history.