-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
canbus: isotp: send_sf() only checks length in ASSERT statement #61501
Labels
Comments
henrikbrixandersen
added a commit
to vestas-wind-systems/zephyr
that referenced
this issue
Aug 15, 2023
Convert the ISO-TP SF length check in send_sf() from __ASSERT() to a runtime check. Fixes: zephyrproject-rtos#61501 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
mbolivar-ampere
pushed a commit
that referenced
this issue
Aug 15, 2023
Convert the ISO-TP SF length check in send_sf() from __ASSERT() to a runtime check. Fixes: #61501 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
This was referenced Aug 15, 2023
Merged
Merged
meshium
pushed a commit
to meshium/zephyr
that referenced
this issue
Aug 16, 2023
Convert the ISO-TP SF length check in send_sf() from __ASSERT() to a runtime check. Fixes: zephyrproject-rtos#61501 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
npal-cy
pushed a commit
to npal-cy/zephyr-1
that referenced
this issue
Oct 3, 2023
Convert the ISO-TP SF length check in send_sf() from __ASSERT() to a runtime check. Fixes: zephyrproject-rtos#61501 Signed-off-by: Henrik Brix Andersen <hebad@vestas.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Describe the bug
The
send_sf()
function insubsys/canbus/isotp/isotp.c
only checks the SF length against the ISO-TP DL - index in an assert.Expected behavior
It should always be checked at runtime.
Environment (please complete the following information):
Additional context
Found by code inspection.
The text was updated successfully, but these errors were encountered: