ud3tn/components/bundle7
Felix Walter f553848633 bundle7: Limit allowed values for bundle block type and fix assertion
Previously the conversion to `enum bundle_block_type` could result in an
unsigned integer overflow, triggering the assertion in rare cases.

This change 1. adapts the assertion such that the check is performed
using the correct data type and 2. introduces a range check for the
bundle block type (only type codes 0-255 are defined).

Closes: #227

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
2024-10-22 09:44:55 +02:00
..
bundle7.c Fix constParameter and constVariable warnings by cppcheck 2024-09-11 10:13:21 +02:00
bundle_age.c bundle7: Fix handling of NULL buffers in parsers 2023-05-10 14:32:47 +02:00
create.c Remove config.h: Move all definitions to individual headers 2023-09-29 14:43:21 +02:00
eid.c style: Spacing, indentation, long lines, continuations 2023-07-25 13:15:05 +02:00
fragment.c bundle_fragmenter: Always create new fragments with offset + length 2024-06-21 10:36:30 +02:00
hopcount.c style: Spacing, indentation, long lines, continuations 2023-07-25 13:15:05 +02:00
parser.c bundle7: Limit allowed values for bundle block type and fix assertion 2024-10-22 09:44:55 +02:00
reports.c bundle7: Fix shadowFunction warnings by cppcheck 2024-09-11 10:15:34 +02:00
serializer.c Fix constParameter and constVariable warnings by cppcheck 2024-09-11 10:13:21 +02:00
timestamp.c Insert SPDX license expression comments into our .c, .h, .py, and .sh code 2022-02-20 16:24:38 +01:00