diff options
| author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2026-06-21 13:46:01 +0200 |
|---|---|---|
| committer | Sander Vrijders <sander@ouroboros.rocks> | 2026-06-29 08:33:00 +0200 |
| commit | a4cb64c2dea5d1dc4d0f915c160513d0d751a8c4 (patch) | |
| tree | a3c45d5286f11e802f346b1487960e5844c67034 /src/irmd | |
| parent | 110d3ed8526197bd866e02199bfeae7569d73d8d (diff) | |
| download | ouroboros-a4cb64c2dea5d1dc4d0f915c160513d0d751a8c4.tar.gz ouroboros-a4cb64c2dea5d1dc4d0f915c160513d0d751a8c4.zip | |
lib: Bound crc_check against short packets
Reject a packet shorter than head_skip + CRCLEN before computing the
CRC, instead of hashing over an underflowed length when the buffer is
too small to hold the trailer.
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd')
0 files changed, 0 insertions, 0 deletions
