sys/can/isotp: various style and robustness fixes#22250
Conversation
kfessel
left a comment
There was a problem hiding this comment.
looks right
did not test
|
Please rebase, now that #22251 is merged :) |
|
Someone(TM) really should make the standalone static test run optional. Murdock does a static test run as well that is mandatory to pass anyway. |
But which ones are the "optional" ones that would not also fail on a merge to Mostly We could extend the static test script to accept some command line parameters to exclude Other than that I think the static test is nice to have. |
- validate received length indicators against actual CAN frame size - consistently use `size_t` instead of a mix `int`/`unsigned` for array indices - make the file IWYU clean - fix some style issues Co-authored-by: Karl Fessel <karl.fessel@gmail.com>
|
I agree that it is nice to have the static test result early on. But making a failure a warning that maintainers may choose to ignore wouldn't be an issue, as the static-test is run a second time. Another cause of static-tests failing is an update of codespell finding new typos. If there is still an old static-test result that passed from ages ago, everything is fine. But if you let the static-test run again, it will complain about typos already fixed in The |
Okay but how about rebasing it in the workflow to the base branch of the PR? 🤔 |
Yes, that be great. |
|
Thx |
Contribution description
size_tinstead of a mixint/unsignedfor array indicesTesting procedure
No idea, I'm not really familiar with the code. Someone(TM) should do some testing before merging this.
Issues/PRs references
Missing validation of the received CAN frames reported by Shin, Sean J from the Georgia Institute of Technologies. Thanks for that!
Declaration of AI-Tools / LLMs usage:
AI-Tools / LLMs that were used are: