mirror of
https://github.com/apache/nuttx.git
synced 2026-10-07 06:15:20 +00:00
The message size is being calculated from the message itself. If application sets value cm_hdr.ch_dlc greater than buflen (that is size_t) then calculation in while condition underflows and multiple messages are attempted to be sent. This check prevents that by verifying that the message size that was encoded in the dlc is not greater than indicated size of the buffer. Signed-off-by: Karel Kočí <cynerd@email.cz> |
||
|---|---|---|
| .. | ||
| can.c | ||
| can_common.c | ||
| can_sender.c | ||
| CMakeLists.txt | ||
| ctucanfd.h | ||
| ctucanfd_pci.c | ||
| Kconfig | ||
| kvaser_pci.c | ||
| Make.defs | ||
| mcp2515.c | ||
| mcp2515.h | ||
| sja1000.c | ||
| sja1000.h | ||