Skip to content

Conversation

@pangzhen1xiaomi
Copy link
Contributor

According to MISRA C-2012 Rule 11.6, a cast shall not be performed between pointer to void and an arithmetic type

Summary

To comply with MISRA C-2012 Rule 11.6, the pointer cast has been modified from (FAR void *) to (FAR char *) when converting an integer value obtained via strtoul() to a pointer. This change ensures proper alignment of the converted pointer as required by the MISRA standard.

Impact

No functional changes: The pointer value remains identical
No performance impact: Same runtime behavior
No memory impact: Same memory usage
API compatibility: All callers remain unaffected

Testing

This change has no effet to functional logic.

1.Compilation Test
Pass

Coverity Rescan
Pass

@github-actions github-actions bot added Area: OS Components OS Components issues Size: XS The size of the change in this PR is very small labels Jan 22, 2026
…oid*

According to MISRA C-2012 Rule 11.6, a cast shall not be performed between pointer to void and an arithmetic type

Signed-off-by: pangzhen1 <pangzhen1@xiaomi.com>
@acassis acassis merged commit 7211742 into apache:master Jan 23, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: OS Components OS Components issues 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