Skip to content

Fix clang-tidy warnings in UDS - #508

Draft
simon-d-bmw wants to merge 1 commit into
eclipse-openbsw:mainfrom
simon-d-bmw:fix-clang-tidy-phase2-uds
Draft

Fix clang-tidy warnings in UDS#508
simon-d-bmw wants to merge 1 commit into
eclipse-openbsw:mainfrom
simon-d-bmw:fix-clang-tidy-phase2-uds

Conversation

@simon-d-bmw

@simon-d-bmw simon-d-bmw commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Purpose of this PR

  • Bugfix
  • New Feature
  • Documentation Update
  • Other (Please specify)

Description
This PR fixes clang-tidy findings in the UDS module by replacing raw
request arrays and pointer arithmetic with ETL-backed views and
containers, tightening malformed-request validation in affected request
parsing paths, and making implemented-request storage safe during object
construction.

It also updates the related UDS regression tests.

Follow-up request API cleanup is tracked in #510.

Related Issues
#381
#510

Breaking Changes

  • Yes
  • No

If there are breaking changes, please explain what they are and how they may impact existing
functionality.

Test Plan

  • Build the changed area with the CI-matching POSIX/Freertos Clang configuration
  • Build the same area locally with GCC
  • Run clang-tidy on the related UDS translation units
  • Run the focused udsTest coverage for the touched request parsing and bounds handling paths
  • Build tests-s32k1xx-release to confirm the changes compile for the second CI target

Regression Tests
Have tests been added/updated? [x] Yes [ ] No

@simon-d-bmw
simon-d-bmw force-pushed the fix-clang-tidy-phase2-uds branch from 4b16897 to 29a4825 Compare July 3, 2026 07:55
@simon-d-bmw
simon-d-bmw force-pushed the fix-clang-tidy-phase2-uds branch from 72a4d7c to 7a65e26 Compare July 3, 2026 11:26
@simon-d-bmw
simon-d-bmw marked this pull request as ready for review July 3, 2026 11:28
@simon-d-bmw
simon-d-bmw force-pushed the fix-clang-tidy-phase2-uds branch from 7a65e26 to 62f57d3 Compare July 3, 2026 11:58
@rolandreichweinbmw

Copy link
Copy Markdown
Contributor

Please wait until merge until upcoming UDS refactoring by @christian-schilling is available and merged first.

@rolandreichweinbmw
rolandreichweinbmw marked this pull request as draft July 7, 2026 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants