Skip to content

{bp-19315} arch/arm: xmc4: fix VADC index bounds checks#19344

Merged
xiaoxiang781216 merged 1 commit into
apache:releases/13.0from
jerpelea:bp-19315
Jul 6, 2026
Merged

{bp-19315} arch/arm: xmc4: fix VADC index bounds checks#19344
xiaoxiang781216 merged 1 commit into
apache:releases/13.0from
jerpelea:bp-19315

Conversation

@jerpelea

@jerpelea jerpelea commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

The XMC_VADC_* constants describe counts, so the valid register, group, and channel indexes are below those values. The current checks allow the count itself through and then use it to index VADC group, channel, and result registers.

Reject those boundary values before the register array access.

Generated-by: OpenAI Codex

Impact

RELEASE

Testing

CI

The XMC_VADC_* constants describe counts, so the valid register, group, and channel indexes are below those values. The current checks allow the count itself through and then use it to index VADC group, channel, and result registers.

Reject those boundary values before the register array access.

Generated-by: OpenAI Codex
Signed-off-by: aineoae86-sys <ai.neo.ae86@gmail.com>
@github-actions github-actions Bot added Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small labels Jul 6, 2026
@xiaoxiang781216 xiaoxiang781216 merged commit 9888b7c into apache:releases/13.0 Jul 6, 2026
26 checks passed
@jerpelea jerpelea deleted the bp-19315 branch July 6, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Arch: arm Issues related to ARM (32-bit) architecture Size: XS The size of the change in this PR is very small

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants